Certbot renewals with Apache

/etc/certbot-auto renew --dry-run
cd /etc/apache2/sites-available
cp yourdomain.com.conf yourdomain.com-ssl.conf
nano yourdomain.com-ssl.conf
<VirtualHost *:80>
...
</VirtualHost>
nano yourdomain.com.conf
<VirtualHost *:443>
...
</VirtualHost>
a2ensite yourdomain.com-ssl.conf
service apache2 restart
/etc/certbot-auto renew --dry-run

--

--

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeremy Keith

Jeremy Keith

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com