Skip to content

Instantly share code, notes, and snippets.

@drewlesueur
Created February 24, 2012 01:38
Show Gist options
  • Save drewlesueur/1896594 to your computer and use it in GitHub Desktop.
Save drewlesueur/1896594 to your computer and use it in GitHub Desktop.
ssl stuff
#first generate a key for your domain
openssl genrsa -out yourdomain.com.key 2048
#then generate the request
openssl req -new -key yourdomain.com.key -out yourdomain.com.csr
#http://mikegrouchy.com/blog/setting-up-nginx-with-ssl-and-godaddy.html
@drewlesueur
Copy link
Author

When it asks YOUR name enter your domain name

Then go to name cheap or someting, buy an ssl certificate (kind of complicated, emails go back and forth). then give them the csr file. then they email you the certificate that you configure with nginx. I didn't have to do anything with my node server. Using the nginx proxy was good enough I guess

http://wiki.nginx.org/HttpSslModule#Generate_Certificates
http://expressjs.com/guide.html#creating-an https server

sudo /etc/init.d/nginx restart

@drewlesueur
Copy link
Author

/etc/ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment