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
1. Open a command prompt and navigate to /etc/nginx/ssl | |
2. Issue "openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr" | |
3. Get your certificate issued - Go to your certificate authority and give them the CSR (server.csr) | |
4. Copy your new crt (that the certificate authority issued) to the /etc/nginx/ssl and give it read priveledges | |
5. Reconfigure your nginx.conf, here is mine. The first part redirects 80 to 443, the second part listens to 443 and is optimized to return Ruby on Rails application requests using gzip and unicorn. |