Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 835 Bytes

ngnix_SSL.md

File metadata and controls

43 lines (33 loc) · 835 Bytes

Nginx SSL Setup

In this section we will learn how we can enable SSL in a site which is served by nginx

Downloading Requirments

Run the following command

sudo apt install certbot python3-certbot-nginx

Enableing SSL

Run the following commands

sudo su
cd etc/nginx/sites-available
certbot  

after choose the domain name or names by providing there index number you can also provide multiple domain names indexs useing coma after that press enter. Next Just Restart Your Nginx

nginx -s reload

SSL Validation Check

certbot certificates

This Command will inform you about the validation of your SSL certificates

SSL Renewal

sudo certbot renew 

This Command will renew all expeired SSL certificates and after that restart your nginx

nginx -s reload