Let's Encrypt SSL Certificate
Generating a New Certificate
Use certbot and follow the guide!
- Install snapd: guide
- Remove certbot-auto and any Certbot OS packages
-
sudo apt-get remove certbot
-
sudo dnf remove certbot
-
sudo yum remove certbot
-
- Install Certbot
-
sudo snap install --classic certbot
-
- Prepare the Certbot command
-
sudo ln -s /snap/bin/certbot /usr/bin/certbot
-
- Choose how you'd like to run Certbot
- Get and install your certificates automatically
-
sudo certbot --apache
-
- Get a certificate manually
-
sudo certbot certonly --apache
-
- Get and install your certificates automatically
- Test automatic renewal
-
sudo certbot renew --dry-run
- Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration.
- Command to renew certbot is installed in following locations
-
/etc/crontab/
-
/etc/cron.*/*
-
systemctl list-timers
-
- Command to renew certbot is installed in following locations
-
- ???
- Profit!