Skip to content

Instantly share code, notes, and snippets.

@unclebean
Last active October 22, 2015 15:59
Show Gist options
  • Save unclebean/4682a995e12f13079ce8 to your computer and use it in GitHub Desktop.
Save unclebean/4682a995e12f13079ce8 to your computer and use it in GitHub Desktop.
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
more userful link:
https://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server
http://shapeshed.com/command-line-utilities-with-nodejs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment