This is a list of common certbot commands that we use regularily
- sudo certbot delete --cert-name example.com
- sudo certbot renew - renew's letsencrypt certificates
- sudo certbot certificates - list of certificates on server
Install Let’s Encrypt SSL Certificate To install a Let’s Encrypt SSL certificate on your domain, execute the following command (make sure you replace ‘yourdomain.com’ with your actual domain name):
- certbot --apache -d yourdomain.com
- chown -R www-data:www-data mysite/
Automatic renewal You can also create a cron job in order to set up an automatic SSL renewal. To do this first run:
crontab -e and then add the following:
0 0 1 /usr/bin/letsencrypt renew >> /var/log/letsencrypt-renew.log
Save the file and close it. Restart the cron service so the changes can take effect:
service cron restart
That’s it. You can now open https://yourdomain.com in your browser and verify whether the Let’s Encrypt SSL certificate has been installed properly.
Of course, you don’t have to install Let’s Encrypt SSL Certificate using Certbot if you use one of our Linux Server Support Services in which case you can simply ask our expert Linux admins to install Let’s Encrypt using Certbot for you. They are available 24×7 and will take care of your request immediately.