Home Technical Articles How-to Articles Creating SSL Certificates in Linux using OpenSSL
Creating SSL Certificates in Linux using OpenSSL PDF Print E-mail
Written by Sam Caldwell   
Saturday, 22 September 2012 15:40
#
#Generate Private key
#
openssl genrsa -des3 -out ~/private.key.tmp 2048
openssl rsa -in ~/private.key.tmp -out ~/private.key
rm ~/private.key.tmp
#
#Generate Certificate Signing Request (CSR)
#
openssl req -new -key ~/private.key -out ~/public.csr
#
#Generate Self-Signed (Temporary) Certificate
#
openssl x509 -req -days 365 -in ~/public.csr -signkey ~/private.key -out ~/public-self-signed.crt