Last active
December 28, 2015 04:59
Revisions
-
isstaif renamed this gist
Nov 13, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
isstaif revised this gist
Nov 13, 2013 . No changes.There are no files selected for viewing
-
isstaif created this gist
Nov 13, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #generate private key openssl genrsa -out private-key.pem 4096 #generate signing request openssl req -new -key private-key.pem -out certificate-signing-request.pem #self sign the request (or send off the Verisign etc etc) openssl x509 -req -in certificate-signing-request.pem -signkey private-key.pem -out certificate.pem #extract public key out of the certificate openssl x509 -pubkey -noout -in certificate.pem > public-key.pem