Adding SSL/TLS ensures that the exchange is encrypted between the server and the client.
sudo apt install certbot python3-certbot-apache
sudo ufw allow 'Apache Full'
sudo ufw delete allow 'Apache'
Get a SSL/TLS certificate with Let's Encrypt:
sudo certbot --apache
Since this is the first run, we answer a series of question:
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: grav.howto.ovh
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Type 1 and Enter to install the certificate.