Adding An SSL Cerificate To A PiZero

Adding an SSL certificate to this web site was simple using Let’s Encrypt.

I followed a guide from pimylifeup.com here, but following is a summary of the steps.

Make sure port 80 ad 443 are forwarded to the PiZero

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-certbot-apache
certbot --apache

Follow the prompts and the certificate will be installed.

If you need to change or add domains after the process has completed, just run this command with all the domains you want to use.

sudo letsencrypt --apache -d mydomain.com,x.mydomain.com,y.mydomain.com

The script will then guide you through updating or replacing the domains.