Configure Nginx for SSL

You need to have private key and CA signed certificate (to test you may generate your own Self signed certificate) to configure your nginx to serve request over SSL. Add following lines into your nginx.conf file and make required changes to point ssl_certificate to location of your certificate in this configuration it is server.crt (if you copy your .crt and .key file into <nginx home>/conf folder . In that case you can specify only file name other wise you need to specify absolute path of a file). [Read More]

Generate self signed SSL certificate

Follow below steps to generate self signed certificate: You need to first generate your own private key. $ openssl genrsa -des3 -out server.key 1024 Generating RSA private key, 1024 bit long modulus .......................++++++ .......++++++ e is 65537 (0x10001) Enter pass phrase for server.key: Verifying - Enter pass phrase for server.key: With above command it will generate private key, while doing that it will ask you to enter pass phrase which will make this private key useful who knows this pass phrase. [Read More]