Skip to main content

Using Cert Bot to get a Valid SSL certificate

This guide will detail how to get a valid SSL cert using certbot on Linux operating systems

Certbot user guide

https://www.onepagezen.com/letsencrypt-auto-renew-certbot-apache/

If in the house set the DNS on the machine to use CloudFlared or Google. DNS will not resolve properly if using the internal DNS servers

  1. install the package certbot sudo apt install certbot -y
  2. navigate to the /etc/letsencrypt directory
  3. sudo certbot certonly --manual --preferred-challenges dns -d "*.coltscomputer.services"
    1. this will pull a SSL cert from Let's Encrypt
  4. Go to the DNS hosted domain on Route 53 and add the _acme-challenge text to the existing _acme-challenge TXT record
  5. add this command to the crontab of the root user 0 0 1 */2 * cd /etc/letsencrypt/ && ./certbot renew && systemctl restart apache2