Skip to content

Add SSL

Video Lecture

Add SSL Add SSL

Description

Let's make http://my-project.your-domain.tld have an SSL certificate and auto-forward all HTTP traffic to HTTPS.

Note

It is important that your domain name has fully propagated across the internet before attempting this step since the CertBot servers will try to validate your domain from different locations in the world.

DNS Checker works well for checking global DNS propagation. Enter your domain and select the A option.

These instructions are for Nginx running on Ubuntu 24.04 LTS. For different operating systems and web servers, check the Certbot website.

A brand new Ubuntu 24.04 will have snap running already.

You can check by typing,

#
snap -h

You should see the hlp information and not an error.

If you need to install snap,

#
#
apt update
apt install snapd

And restart your server.

Install CertBot.

#
snap install --classic certbot

Prepare the CertBot command

#
ln -s /snap/bin/certbot /usr/bin/certbot

Now we can run CertBot and follow the prompts.

#
certbot --nginx

Now visit the https version of your URL.

https://my-project.your-domain.tld

You can also visit the example that was created in the video.

https://my-project.sbcode.net

Comments