Étape 1 : Mettre votre système à jour
Connectez-vous en SSH en tant qu’administrateur « root ».
et tapez ceci:
apt-get update && apt-get upgrade -y
Étape 2 : Installation de certbot
Pour Debian 8:
faites:
wget https://dl.eff.org/certbot-auto
mv certbot-auto /usr/local/bin/certbot-auto
chown root /usr/local/bin/certbot-auto
chmod 0755 /usr/local/bin/certbot-auto
Pour Debian 9 / 10 / 11 :
pour Apache, faites:
apt-get install certbot python-certbot-apache
pour Nginx faites:
apt-get install certbot python-certbot-nginx
Pour Ubuntu 16 / 18 :
faites:
apt-get install software-properties-common
add-apt-repository universe
add-apt-repository ppa:certbot/certbot
apt-get update
puis pour Apache :
apt-get install certbot python-certbot-apache
puis pour nginx :
apt-get install certbot python-certbot-nginx
Étape 3 : Installation du certificat
Pour Apache :
Pour Debian 8 :
/usr/local/bin/certbot-auto --apache
Pour Debian 9 / 10 / 11 et Ubuntu 16 / 18 :
certbot --apache
Pour Nginx:
Pour Debian 8 :
/usr/local/bin/certbot-auto --nginx
Pour debian 9 / 10 / 11 et Ubuntu 16 / 18 :
certbot --nginx
Voilà donc quand vous avez tapé cette commande, vous devriez voir ceci:

donc à ce stade tapez votre adresse mail et faites "Entrer"
Ensuite, acceptez la licence en écrivant "A" et en appuyant sur "Entrer" :

Maintenant, écrivez "N" et appuyez sur "Entrer":

Maintenant vous arrivez sur ceci:

Vous devez écrire tout les noms de domaines où il faut mettre le certificat.
Par exemple, on protège le domaine: example.com et www.example.com

Pour toutes éventuelles questions, n'hésitez pas à passer sur Discord.
L'équipe InovaPerf.