To secure Apache with mod_md and Let's Encrypt on Ubuntu 20.04 LTS, follow these steps:
sudo apt update sudo apt install libapache2-mod-mdSourc:ewww.lautturi.com
sudo a2enmod md
sudo systemctl restart apache2
sudo apt install certbot
sudo certbot --apache
This will start the interactive certbot wizard, which will guide you through the process of obtaining a certificate. Follow the prompts to enter your domain name, email address, and agree to the terms of service. Once the process is complete, you will have a valid SSL certificate installed on your Apache server.
That's it! Your Apache server is now secured with mod_md and a Let's Encrypt SSL certificate.