Lets assume for a moment you have created a server like here
Webserver and MySQL Setup (Quick) with User and Privileges on Ubuntu
And you have setup a site like this
Install WordPress (on Ubuntu 22.04+)
Then we now will want to start using an SSL certificate to secure our site.
sudo apt install -y certbot python3-certbot-apache
Really there is nothing more to the installation, we can now run it for example Apache 2
sudo certbot --apache
The first time you run this, you will first be asked to enter an email and agree to some terms.
This last one is optional, but we usually say Yes anyway.
Then we get the screen that we would get each other time
And we select the site we want to have a cert for. If that goes well, you will see some output, but most important would be
Leave a Reply