When i use the private key with passphrase, i get the exception System.NotSupportedException:“Key 'ENCRYPTED' is not supported.” #1361
Unanswered
Alimjan124
asked this question in
Q&A
Replies: 1 comment
-
See #1535 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When i use the private key with passphrase, i get the exception System.NotSupportedException:“Key 'ENCRYPTED' is not supported.”
this is my code :
var client = new SshClient(sshHostName, sshPort, sshUserName, new PrivateKeyFile(sshKeyFilePath, sshKeyFilePassword))
and my private key generated with
openssl genpkey -algorithm RSA -aes-256-cbc -outform PEM -out private_key.pem -pkeyopt rsa_keygen_bits:2048
Beta Was this translation helpful? Give feedback.
All reactions