Installing Certbot


For this article I followed this guide, This is more a note to self, so check the article for more options.

After reinstalling the server os, one of the things I had to do was to set up Certbot again. This adds an SSL certificate and removes the scary warning and adds a padlock by your URL in the browser window.

You’ll first need to install Certbot for either Apache or Nginix

sudo apt install certbot python3-certbot-apache

Then use Certbot to create an SSl certificate

sudo certbot --apache -d example.com -d www.example.com

You’l then be asked a few questions, like your email address, agree to terms and services and whether you want to receive emails from the EFF.

In my case it initially failed due to a DNS problem amd an improperly set up vhost in Apache. Running this code ram a more verbose setup that fixed the vhost problem.

sudo certbot -v

You can then go to whynopadlock.com to check your status.

Leave a Reply

Your email address will not be published. Required fields are marked *