- First, install
add-apt-repositorysudo apt install software-properties-common
- Then, install
certbotsudo add-apt-repository ppa:certbot/certbot sudo apt install python-certbot-nginx
- Make sure
server_nameis set in theserverblock with the corresponding domain that we want to add SSL becausecertbotwill 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