Amazon.co.uk Widgets

Log in

X
Lock icon

SSL is easy now, no reason to avoid even on development computers

Let’s Encrypt is a nonprofit Certificate Authority providing certificates so that your websites can use secure connections. Certbot is free open source software that allows you to easily create Let’s Encrypt SSL

TL:DR — It takes about five minutes to get SSL configured on Apache on Ubuntu 22.04 LTS.

Installing

The Certbot snap is strongly recommended for most users. Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully. Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Snap is already installed and ready to go on Ubuntu Desktop 22.04 LTS. You can check sudo snap install core; sudo snap refresh core but it will be up to date unless you did something to remove it.

  • To install Certbot sudo snap install --classic certbot
  • Link it so the command can be found in the terminal sudo ln -s /snap/bin/certbot /usr/bin/certbot
  • Get a certificate and have Certbot edit your apache configuration automatically to serve it, turning on HTTPS access in a single step.sudo certbot --apacheOr, just get a certificate if you would like to make the changes to your apache configuration by hand,sudo certbot certonly --apache
  • Certbot comes with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:sudo certbot renew --dry-run
  • To confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar.
Click the Lock icon in the browser to review your certificate
The Lock icon in the browser shows information about your certificate

Resources