Mike's face
Wednesday, May 22nd, 2019

Basic openssl usage

Tuesday January 18, 2005 13:41

Basic instructions how to generate private/public key pairs, encrypt and decrypt them.

Generate a new private key, -des3 encrypts it:

$ openssl genrsa -des3 -out private.pem 1024

Generate a public key from a private key:

$ openssl rsa -in private.pem -pubout -out public.pem

Extract an unencrypted private key from a possibly encrypted private key:

$ openssl rsa -in private2.pem

And Bob's your Uncle.

(C) Copyright 2004-2007 Mike Pot