Raise exception if provided private key does not exist