Last active
February 17, 2017 21:42
-
-
Save touren/f2f0b47246351f1032a8907b19c22b90 to your computer and use it in GitHub Desktop.
Creating a Self-Signed SSL Certificate
This file contains 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
# 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