This is a note-to-self
StartSSL is a certification authority which gives away free SSL certificates valid for one year (after which you can renew it again for free). They are simply awesome. Anyway, this blog post documents how you can setup an ssl cert on an nginx server using the start ssl free cert.
1 openssl genrsa -des3 -out server.key.secure 2048
2 openssl rsa -in server.key.secure -out server.key
3 openssl req -new -key server.key -out server.csr
4
server.csr file in the next step. Finish the rest of the steps of this wizard.server.crt on the server.cat sub.class1.server.ca.pem >> server.crt to append the intermediate certificate to your cert.1 sudo cp server.crt /etc/ssl/example.com.crt
2 sudo cp server.key /etc/ssl/example.com.key
3
1 server {
2 .
3 .
4 listen 80;
5 listen 443 ssl;
6 ssl on;
7 ssl_certificate /etc/ssl/example.com.crt;
8 ssl_certificate_key /etc/ssl/example.com.key;
9 .
10 .
11 }
12