LetsEncrypt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
== Let's Encrypt on Ubuntu server | == Let's Encrypt on Ubuntu server == | ||
First update the server | First update the server | ||
| Line 7: | Line 7: | ||
sudo apt autoremove | sudo apt autoremove | ||
</pre> | </pre> | ||
=== Apache === | |||
Then run these command to install and config certbot | Then run these command to install and config certbot | ||
| Line 23: | Line 25: | ||
</pre> | </pre> | ||
== | === nginx === | ||
Then run these command to install and config certbot | Then run these command to install and config certbot | ||
Latest revision as of 16:40, 28 November 2024
Let's Encrypt on Ubuntu server
First update the server
sudo apt update sudo apt upgrade sudo apt autoremove
Apache
Then run these command to install and config certbot
sudo apt install certbot python3-certbot-apache sudo apache2ctl configtest sudo systemctl reload apache2 sudo ufw allow 'Apache Full' sudo certbot --apache
Check auto renewal status
sudo systemctl status certbot.timer
nginx
Then run these command to install and config certbot
sudo apt install certbot python3-certbot-nginx sudo systemctl reload nginx sudo certbot --nginx
Check auto renewal status
sudo systemctl status certbot.timer