Nginx setup with ssl:

  1. Generate certificate from:

https://punchsalad.com/ssl-certificate-generator/

generate-ssl-cert.png

 

  1. Update DNS record , wait for 5 mins and check the dns ex:

update-dns-record-ssl2.png

 

  1. Once record is verified , download the cert from next page

 

  1. rename the files accordingly

sudo mv your_domain_chain-CA.txt your_domain_chain.crt sudo mv your_private-key.txt your_private.key
  1. Install nginx

sudo apt update sudo apt install nginx
  1. create directory to store ssl certs and copy the downloaded cert files in Step 4

sudo mkdir /etc/nginx/certs
  1. Create a nginx configuration file

  1. Create symlink

  1. check configuration and reload nginx

Â