Hi guys,

I'm generating some keys with OpenSSL, and converting them to byte
format using the following commands:

--------------
openssl genrsa -out private_key.pem -f4 768
openssl pkcs8 -in private_key.pem -nocrypt -topk8 -out PK.pem
cat PK.pem | openssl enc -base64 -d > PK.key
rm -f private_key.pem PK.pem
ls -l PK.key
--------------

This will generate a PK.key file (byte format private key) as
expected. The size of the private key is variable. It can be anywhere
from 487 bytes to 491 bytes in length.

I was wondering if its possible to specify a length to generate
(rather than keep running the above commands until the size is 487!)?
A few other applications/libraries I have used to generate a private
key (bsafe etc) have a constant 487byte length, and I was just unsure
if this could cause an incompatability when trying to integrate the
two.

Cheers,
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to