Last active
December 11, 2015 05:48
-
-
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.
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
#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