- -
2015-06-10 19:35:17 UTC
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: [***@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/
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: [***@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/