Skip to content

Instantly share code, notes, and snippets.

@alexgorbatchev
Created September 9, 2014 13:26
Show Gist options
  • Save alexgorbatchev/2df87f8e4d0def98bd5c to your computer and use it in GitHub Desktop.
Save alexgorbatchev/2df87f8e4d0def98bd5c to your computer and use it in GitHub Desktop.
Generate self signed https certificates for node.js express/hapi/etc
#!/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