Skip to content

Instantly share code, notes, and snippets.

@richard-to
Last active December 11, 2015 05:48
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 richard-to/4554226 to your computer and use it in GitHub Desktop.
Save richard-to/4554226 to your computer and use it in GitHub Desktop.
Create a development SSL certificate. Need to verify if this is the best way to do it or not, but for now just transferring my old Snipplr account.
#Create server key
openssl genrsa -des3 -out server.key 4096
#Remove password
openssl rsa -in server.key -out server.pem
#Create certificate
openssl req -new -key server.key -out server.csr
#Sign certificate
openssl x509 -req -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