Skip to content

Instantly share code, notes, and snippets.

@annagapuz
Last active December 10, 2015 23:49
Show Gist options
  • Save annagapuz/4512648 to your computer and use it in GitHub Desktop.
Save annagapuz/4512648 to your computer and use it in GitHub Desktop.
OpenSSL Create Certificate Authority and sign certificate request
# Assumptions
- OpenSSL is installed
- base working directory is /usr/lib/ssl/misc
# Create new certificate authority, created in demoCA directory
sudo ./CA.pl -newca
# Sign a certificate request using CA created above
sudo openssl x509 -req -CA demoCA/cacert.pem -CAkey demoCA/private/cakey.pem -in newreq.pem -out localhost.cer -days 1460 -CAcreateserial
# Links
http://www.techrepublic.com/blog/doityourself-it-guy/diy-create-free-self-signed-certificate-authorities/1495
http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/index.html
http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/x160.html
http://docs.oracle.com/cd/E19509-01/820-3503/ggezu/index.html
http://portecle.sourceforge.net/import-ca-reply.html
http://www.octaldream.com/~scottm/talks/ssl/opensslca.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment