Install SSL certificate on Ubuntu 20.04 using Certbot
First you make sure you have a virtual host file for your domain. I n my case I have /etc/apache2/sites-available/ www .conf Step 1 — Installing Certbot $ sudo apt install certbot pyt hon3-certbot-apache Step 2 — Allowing HTTPS Through the Firewall $ sudo ufw allow 'Apache Full' $ sudo ufw delete allow 'Apache' Step 3 — Obtaining an SSL Certificate $ sudo certbot --apache Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Enter email address (used for urgent renewal and security notices) (Enter 'c' to cancel): your_email@domain - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must agree in order to register with the ACME server at https://acme-v02.api.letsencrypt.org/directory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...