DEV Community

Isaac kumi
Isaac kumi

Posted on

Configure SSL for Free with Let's Encrypt

Update the Snap application, which is used to download application bundles. Snap comes pre-installed on Ubuntu 22.04.

sudo snap install core && sudo snap refresh core
Enter fullscreen mode Exit fullscreen mode

Install core

Remove the default Ubuntu Certbot installation.

sudo apt remove certbot
Enter fullscreen mode Exit fullscreen mode

remove pre-installed certbot

Install Certbot.

sudo snap install --classic certbot
Enter fullscreen mode Exit fullscreen mode

install certbot

Download a certificate for the domain using certbot

sudo certbot --apache
Enter fullscreen mode Exit fullscreen mode

Enter domain name when asked eg: isaackumi.com

Top comments (0)