[JSch-users] Encrypted RSA key is recognized as invalid key
Status: Alpha
Brought to you by:
ymnk
From: - - <ns...@fl...> - 2015-06-10 20:33:37
|
There is an error when using RSA AES-128 with jsch.addIdentity() When the key is encrypted (when it has a password), then it is not recognized a valid key by the file KeyPair.java at the line 697. This returns error messages as "invalid privatekey: [B@54a8ff21" The method used to add an identity is: addIdentity(String, byte[] privatekey, byte[] publickey, byte[] passphrase); Keys without password work fine. Similar issues: http://sourceforge.net/p/jsch/mailman/message/31621834/ http://sourceforge.net/p/jsch/mailman/message/31623173/ |