How to Obtain an SSL Certificate using 'certbot'

How to Obtain an SSL Certificate using 'certbot'

Request a certificate for hostname.puffinprojects.co.uk:
  1. certbot certonly -d `hostname`.puffinprojects.co.uk
Link the full certificate chain:
  1. ln -s /etc/letsencrypt/live/`hostname`.puffinprojects.co.uk/fullchain.pem /etc/cockpit/ws-certs.d/50-cockpit.cert
Link the private key:
  1. ln -s /etc/letsencrypt/live/`hostname`.puffinprojects.co.uk/privkey.pem /etc/cockpit/ws-certs.d/50-cockpit.key
Restart the Cockpit service:
  1. systemctl restart cockpit