Product SiteDocumentation Site

2.7.3.2. Generating Keys

On a command line with openssl installed (any Mac OS X or Linux box is suitable):
$ openssl genrsa -des3 -out private.key 1024
This command will generate a new private key in the file "private.key". This can be then used to create a new public key file:
$ openssl rsa -in private.key -pubout -out publickey.pem
This will use the private key we just created in private.key to output a new public key into the file publickey.pem.