Outils pour utilisateurs

Outils du site


bsd:bsdd

Renouveler le certificat Let's Encrypt automatiquement

Création du script

vi letsEncryptRenew.sh
 
#!/bin/ksh
 
# Renew du certificat Let's Encrypt
#
echo "Renew du certificat Let's Encrypt";
apachectl stop
certbot renew
apachectl start


Rendre le script exécutable

chmod +x letsEncryptRenew.sh


Renouvellement du certificat tous les 30 jours à 03h30

crontab -e
30	3	30	*/3	*	/bin/sh	/root/script/letsEncryptRenew.sh



Let's Encrypt

bsd/bsdd.txt · Dernière modification : de 127.0.0.1