Created
September 9, 2014 13:26
-
-
Save alexgorbatchev/2df87f8e4d0def98bd5c to your computer and use it in GitHub Desktop.
Generate self signed https certificates for node.js express/hapi/etc
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
#!/bin/bash | |
openssl genrsa -out key.pem | |
openssl req -new -key key.pem -out csr.pem | |
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem | |
rm csr.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment