Multiple SSL Virtual Host Zimbra dengan letsencrypt
Pastikan letsencrypt sudah terinstall /etc/letsencrypt/live/mail.domain.com/*
Pastikan zimbra berjalan normal dengan primary domain misal mail.domain.net
Disini memakai zimbra OSE 8.8.15 akan memasang ssl letsencrypt untuk vhost domain mail.domain.com tentunya A Rec sudah di arah kan ke ip zimbra dan vhost sudah di tambahkan di zimbra
1. Download root cert
wget -O /etc/letsencrypt/ISRG-X1.pem https://letsencrypt.org/certs/isrgrootx1.pem.txt
2. Deploy bundle
cat /etc/letsencrypt/ISRG-X1.pem /etc/letsencrypt/live/mail.domain.com/chain.pem > /etc/letsencrypt/live/mail.domain.com/chain-with.pem
cat /etc/letsencrypt/live/mail.domain.com/cert.pem /etc/letsencrypt/live/mail.domain.com/chain-with.pem > /etc/letsencrypt/live/mail.domain.com/deployme.bundle
chown -R zimbra:zimbra /etc/letsencrypt
3. Verifikasi
sudo su zimbra -
/opt/zimbra/bin/zmcertmgr verifycrt comm /etc/letsencrypt/live/mail.domain.com/privkey.pem /etc/letsencrypt/live/mail.domain.com/cert.pem /etc/letsencrypt/live/mail.domain.com/deployme.bundle
4. Deploy
zmprov cd mail.domain.com
zmprov md domain.com zimbraVirtualHostName mail.domain.com
/opt/zimbra/libexec/zmdomaincertmgr savecrt domain.com /etc/letsencrypt/live/mail.domain.com/deployme.bundle /etc/letsencrypt/live/mail.domain.com/privkey.pem
/opt/zimbra/libexec/zmdomaincertmgr deploycrts
4. Restart proxy
zmproxyctl restart
5. Cron
Bisa di buat script dan cronjob untuk renewal tiap dua bulan.
Lakukan langkah yang sama untuk setiap penambahan vhost di zimbra tersebut
Semoga Bermanfaat
Komentar
Posting Komentar