Skip to content

Instantly share code, notes, and snippets.

@lysender
Last active October 5, 2017 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lysender/3c7b85fe1a75db46d4c59a255266f616 to your computer and use it in GitHub Desktop.
Save lysender/3c7b85fe1a75db46d4c59a255266f616 to your computer and use it in GitHub Desktop.
Creating Self-Signed Certificate
openssl genrsa -out server.key 4096
openssl rsa -in server.key -out server.key
openssl req -sha256 -new -key server.key -out server.csr -subj '/CN=localhost'
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
# Create pem
cat server.crt server.key > cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment