Last active
September 25, 2022 10:50
-
-
Save stonecorleone/a140618e40f8bd6fd575364d34bd3998 to your computer and use it in GitHub Desktop.
Setup Let’s Encrypt SSL on Ubuntu 18.04 & 16.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt | |
- cd /opt/letsencrypt | |
- Cert Only: sudo -H ./letsencrypt-auto certonly --standalone -d example.com -d www.example.com | |
- Auto config: sudo -H ./letsencrypt-auto -d example.com -d www.example.com | |
Check Certificate Domains | |
- sudo ls /etc/letsencrypt/live | |
- ./certbot-auto certificates | |
Update Let’s Encrypt | |
- cd /opt/letsencrypt | |
- sudo git pull | |
- sudo crontab -e | |
- 0 0 1 * * /opt/letsencrypt/letsencrypt-auto renew |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/