Last active
December 28, 2015 04:59
-
-
Save isstaif/7446843 to your computer and use it in GitHub Desktop.
Generating a certificate using openssl
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 characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment