Install Certbot to Auto-Renew SSL Certificates Issued by Let's Encrypt
Certbot will let you manage your SSL certificates, ensuring that your server will automatically renew Let's Encrypt without you doing it by hand.
Login to you server using a sudo
account. Make sure to sudo
all commands.
Step 1: Install Snapapt update
apt install snapd
exit
Step 2: Login again to your server with a sudo
accountsnap install core
Test installation with Hello Worldsnap install hello-world
Ensure you've got the latest version of Snapsnap refresh core
Step 3: Make sure no preinstalled Certbot running in your systemapt-get remove certbot
Step 4: Install Certbotsnap install --classic certbot
Ensure Certbot command can be runln -s /snap/bin/certbot /usr/bin/certbot
Allow Certbot to edit your Apache configuration automaticallycertbot --apache
Step 5: Dry run automatic renewal of certificates
certbot renew --dry-run
Comments