Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8k views
in Java FTP by (200 points)
I get the following error message when I try to load the client key and certificate.
Any ideas of what is wrong?


2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | Exception in thread "main"
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | java.lang.InternalError: Algorithm AES-128-CBC not recognized
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.crypto.B.A(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.crypto.EAYEncryptedPrivateKey.createPrivateKey(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.SSLContext.loadEAYKeyFile(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.SSLContext.loadEAYKeyFile(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.ftp.ssl.SSLFTPClient.loadClientCertificate(Unknown Source)

7 Answers

0 votes
by (200 points)
I get the following error message when I try to load the client key and certificate.
Any ideas of what is wrong?


2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | Exception in thread "main"
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | java.lang.InternalError: Algorithm AES-128-CBC not recognized
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.crypto.B.A(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.crypto.EAYEncryptedPrivateKey.createPrivateKey(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.SSLContext.loadEAYKeyFile(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.puretls.SSLContext.loadEAYKeyFile(Unknown Source)
2009-10-19 14:47:06 | [main] | ERROR | Redirect Err | at com.enterprisedt.net.ftp.ssl.SSLFTPClient.loadClientCertificate(Unknown Source)


The key is generated with:
openssl genrsa -aes128 -out key.pem 2048

and the certificate with:
openssl req -new -key key.pem -out cert.csr
0 votes
by (162k points)
We'll check this out and get back to you.
0 votes
by (162k points)
Currently we don't support encrypting the private key using AES.

Best to use 3DES, e.g. openssl genrsa -des3 -out key.pem 2048
0 votes
by (200 points)
OK thankyou. Do you plan to support AES in the near future?
Regards Karin
0 votes
by (162k points)
We've a bit more testing to do, but can give you a patched build tomorrow for you to try out, hopefully. Please email us to request it.
0 votes
by (162k points)
Ok, we've added this functionality for AES128, AES192 and AES256. We'll send you an email with a link of where to download the patched jar. We'll release this in 3.1.2 in due course.
0 votes
by (162k points)
So, does it work for you?

Categories

...