How to enable SSL on NGINX running on Amazon Linux
You have made right choice by selecting nginx as your web server! According to Netcraft nginx served or proxied 12.96% busiest sites in April 2013 . Setting up nginx with OpenSSL is easy, and I will not cover it here. The goal is to enable SSL on your domain.com website, and just like anything with nginx, everything is very straight forward. I am using latest Amazon Linux in AWS with nginx/1.2.6 and php-fpm installed, and GeoTrust as digital certificate provider. GeoTrust has product called QuickSSL Premium , which takes just minutes to get your certificate, and it even comes with free trial. Step One - Generate Certificate Signing Request (CSR) Lets generate a key pairs. In this example, I will bypass the passphrase request. 1) generate private key Log in to your Amazon linux box via SSH, and generate 2048 bit RSA private key: openssl genrsa -out www.domain.com.key 2048 For encrypted keys, use -des3 parameter. If you don't use encryption for your priva...