On Thu, 28 Feb 2002, Hasnain Mujtaba wrote:
> Which PKCS format does the output of openssl command "genrsa" conform
> to? I want to store the private key in a Java Keystore. To do that, I
> need to first convert the encoded private key bytes into a KeySpec. I
> use PKCS8EncodedKeySpec class to encode PKCS8 keys but can't use this
> class for keys generated with "genrsa".
The output of 'openssl genrsa' is a PKCS#1 format file. You can later
convert it to PKCS#8 format with the.... 'openssl pkcs8' command.
--
Erwann ABALEA <[EMAIL PROTECTED]> - RSA PGP Key ID: 0x2D0EABD5
-----
No single raindrop believes it is to blame for the flood.
Demotivators, 2002 calendar
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]