- First, install
add-apt-repository
sudo apt install software-properties-common
- Then, install
certbot
sudo add-apt-repository ppa:certbot/certbot sudo apt install python-certbot-nginx
- Make sure
server_name
is set in theserver
block with the corresponding domain that we want to add SSL becausecertbot
will use this information to deploy the certificate. - Finally, obtain an SSL certificate
sudo certbot --nginx -d example.com -d www.example.com
Created
April 11, 2019 03:48
-
-
Save afriza/8be7701a167c07fbd5400a10f7e796b4 to your computer and use it in GitHub Desktop.
Installing HTTPS for NGINX with Let's Encrypt on Ubuntu 18.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment