Browse Source

renommé : Lina/lina-cert_renew.sh -> Lina_Tina/lina-cert_renew.sh

modifié :         zimbra/certificat/renew_cert_acmesh_zimbra.sh
master
Sébastien Faton 11 months ago
parent
commit
9ad6f3163c
  1. 0
      Lina_Tina/lina-cert_renew.sh
  2. 14
      zimbra/certificat/renew_cert_acmesh_zimbra.sh

0
Lina/lina-cert_renew.sh → Lina_Tina/lina-cert_renew.sh

14
zimbra/certificat/renew_cert_acmesh_zimbra.sh

@ -1,12 +1,12 @@
#!/bin/bash
RCODE=$?
#Saisir le FQDN
FQDN_1=zimbrapro.altinea.fr
#FQDN_2=smtp.it-nea.eu
/root/.acme.sh/acme.sh --issue --standalone -d ${FQDN_1}
#/root/.acme.sh/acme.sh --issue --standalone -d ${FQDN_1} -d ${FQDN_2}
/root/.acme.sh/acme.sh --issue --standalone --keylength 4096 -d ${FQDN_1}
#/root/.acme.sh/acme.sh --issue --standalone --keylength 4096 -d ${FQDN_1} -d ${FQDN_2}
if [ $RCODE -eq 0 ]; then
su - zimbra -c "/opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /etc/myacme/${FQDN_1}/${FQDN_1}.cer"
VERIF_RCODE=$(su - zimbra -c"echo $?")
if [ $VERIF_RCODE -eq 1 ]; then
@ -21,3 +21,9 @@ if [ $CERT_RCODE -eq 1 ]; then
exit 1;
fi
su - zimbra -c "zmcontrol restart"
fi
if [ $RCODE -eq 1 ]; then
echo Erreur de renouvellement
exit 1;
fi
Loading…
Cancel
Save