Nginx SSL Configuration

Lets say we have a nginx virtual host like following

To make it SSL enabled, add following to the server entry.

Example

ssl_certificate

This can also take ca-bundle. In that cause, you don’t need to use ssl_client_certificate directive to specify ca-bunlde location.

Create a new yourdomain.crt file with content from following 2 files in the order.

YOUR_DOMAIN.crt
YOUR_DOMAIN.ca-bundle

Create the file as follows

Redirect Traffic to SSL