Installing a GoDaddy certificate on Zimbra

Uno script per aggiornare velocemente il certificato SSL di Zimbra.

NEWCERT=$1

if [[ ! -f $NEWCERT ]]
then
	echo "usage: $0 <new_cert>"
	exit 1
fi

mkdir /root/certs
cd /root/certs


wget "https://certs.godaddy.com/anonymous/repository.pki?streamfilename=gd_bundle.crt&actionMethod=anonymous%2Frepository.xhtml%3Arepository.streamFile%28%27%27%29&cid=13945" -O /root/certs/commercial_ca.crt

## verify cert
/opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key $NEWCERT ./commercial_ca.crt

## deploy the cert
/opt/zimbra/bin/zmcertmgr deploycrt comm NEWCERT ./commercial_ca.crt

service zimbra restart