On Thu, Aug 07, 2003 at 10:21:09AM +0200, Davide De Benedictis wrote: > Hi, here again > > I'm a Java user and I'm using the Java Cryptography Extension shipped > with the JDK 1.4 and enhanced with the BouncyCastle.org open source > libraries. I need to interact with a PHP server which uses OpenSSL > for digital Signatures. > I'm trying to read and decript an RSA private key previously > generated with OPENSSL. The key is encrypted using triple des > and a key obtained from a pass phrase. Command used was: > > openssl genrsa ?des3 ?out private_key_file 256 > > I will have to find out the algorithm used by openssl to convert the > passphrase into a 3des 168 bit key and do the same in my code.
Both BouncyCastle and OpenSSL support pkcs12 and private key could be saved in this format. Yes, 3des still could be used to encrypt this private key. hope this helps, Vadim > Has somebody successfully imported such a key with Java and/or > BouncyCastle libraries? > Which algorithm should I use ? > I investigated OPENSSL docos and source code without results. > > Thank you in advance. > > -- > Davide > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]