Skip to content

Instantly share code, notes, and snippets.

@touren
Last active February 17, 2017 21:42
Show Gist options
  • Save touren/f2f0b47246351f1032a8907b19c22b90 to your computer and use it in GitHub Desktop.
Save touren/f2f0b47246351f1032a8907b19c22b90 to your computer and use it in GitHub Desktop.
Creating a Self-Signed SSL Certificate
# From: https://devcenter.heroku.com/articles/ssl-certificate-self
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key
rm server.pass.key
openssl req -new -key server.key -out server.csr
// Common Name (e.g. server FQDN or YOUR name) []:localhost
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment