renew_certificat_from_letsencrypt
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
renew_certificat_from_letsencrypt [2022/10/25 02:08] – [Renew certificate with OVH API] inc002 | renew_certificat_from_letsencrypt [2022/10/25 02:11] (Version actuelle) – inc002 | ||
---|---|---|---|
Ligne 31: | Ligne 31: | ||
You need to install certbot with OVH API support described to point 1 and 2 of https:// | You need to install certbot with OVH API support described to point 1 and 2 of https:// | ||
- | For automatic renewal, you can add to crontab the script bellow | + | For automatic renewal, you can add to crontab the script bellow. Don't forget to change the $DOMAIN variable and adjust the certbot line if your mail server |
<code bash | renewLECertZimbra.sh> | <code bash | renewLECertZimbra.sh> | ||
#!/bin/bash | #!/bin/bash | ||
DOMAIN=' | DOMAIN=' | ||
+ | HOST=' | ||
+ | MAIL_USER=' | ||
CERTBOT_OUT="" | CERTBOT_OUT="" | ||
TMP_CERTBOT="/ | TMP_CERTBOT="/ | ||
Ligne 41: | Ligne 43: | ||
touch $TMP_CERTBOT | touch $TMP_CERTBOT | ||
- | / | + | / |
#check if renewal is needed | #check if renewal is needed |
renew_certificat_from_letsencrypt.1666656519.txt.gz · Dernière modification : 2022/10/25 02:08 de inc002