After connecting to the SSH, make sure to update and upgrade all of your services by running:
- sudo apt-get update && sudo apt-get upgrade
Later, to install Let’s encrypt SSL we will be using
CertBot.
If you are not using Apache on Ubuntu, please refer to their documentation and select HTTP Server and your linux distribution.
Before we install certbot, please copy and paste the following commands:
- sudo apt-get install software-properties-common
- sudo add-apt-repository universe
- sudo apt-get update
After adding these repositories, now we can install certbot.
- sudo apt-get install certbot python3-certbot-apache
Now we can call our service and install SSL.
After running this command, you will be asked to select a domain you want to secure. For example I will chose number 1, which is
demo.valcyber.tk