Switching to HTTPS on Apache 2.4.7 on Ubuntu 14.04 on Digital Ocean

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
mv certbot-auto /etc
/etc/certbot-auto --apache certonly -d yourdomain.com
  • /etc/letsencrypt/live/yourdomain.com/cert.pem
  • /etc/letsencrypt/live/yourdomain.com/chain.pem
  • /etc/letsencrypt/live/yourdomain.com/privkey.pem
  • /etc/letsencrypt/live/yourdomain.com/fullchain.pem
cd /etc/apache2/sites-available
nano yourdomain.com.conf
a2ensite yourdomain.com
service apache2 restart
/etc/certbot-auto renew --dry-run
Processing /etc/letsencrypt/renewal/yourdomain.com.conf
** DRY RUN: simulating 'certbot renew' close to cert expiry
** (The test certificates below have not been saved.)
Congratulations, all renewals succeeded.
crontab -e
15 18 * * * /etc/certbot-auto renew --quiet >> /var/log/certbot-renew.log
/etc/certbot-auto --apache certonly -d yourotherdomain.com

--

--

--

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

More from Medium

Running Gatsby inside a Docker® Container on macOS

Self-Hosting Sanity Studio with GitHub Actions

Sanity logo, GitHub Actions logo, DreamHost logo

Auto Tagging and using Semantic Versioning with GitHub Actions

How to customize KrakenD API Gateway using your own Middlewares?