L'ajout de SSL/TLS garantit que les échanges entre le serveur et le client seront chiffrés.
sudo apt install certbot python3-certbot-apache
sudo ufw allow 'Apache Full'
sudo ufw delete allow 'Apache'
Obtenir un certificat SSL/TLS avec Let's Encrypt :
sudo certbot --apache
Comme il s'agit de la première exécution, nous répondons à une série de questions :
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):
Choisir 1 et Entrée pour installer le certificat.