0% found this document useful (0 votes)
109 views

Renew Letsencrypt of Zimbra Server

This document provides instructions for renewing an SSL certificate issued by Let's Encrypt for a Zimbra server. The steps include: 1) Running 'letsencrypt renew' to get new certificates from Let's Encrypt 2) Copying the new files to the Zimbra SSL folder and changing ownership to Zimbra 3) Adding an additional root certificate to the certificate chain 4) Verifying the certificates and deploying the new SSL configuration by restarting Zimbra services.

Uploaded by

DIDJAY VIJAY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views

Renew Letsencrypt of Zimbra Server

This document provides instructions for renewing an SSL certificate issued by Let's Encrypt for a Zimbra server. The steps include: 1) Running 'letsencrypt renew' to get new certificates from Let's Encrypt 2) Copying the new files to the Zimbra SSL folder and changing ownership to Zimbra 3) Adding an additional root certificate to the certificate chain 4) Verifying the certificates and deploying the new SSL configuration by restarting Zimbra services.

Uploaded by

DIDJAY VIJAY
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Renew letsencrypt of Zimbra server

Posted on May 9, 2018 by adminx


After installing Letsencrypt SSL according
to https://wiki.zimbra.com/wiki/Installing_a_LetsEncrypt_SSL_C
ertificate article you need to renew certificate later. To renew
certificate you can do following:
Login to server as root

$ letsencrypt renew

Change directory to Zimbra Letsecnrpyt SSL folder

# cd /opt/zimbra/ssl/letsencrypt/

Copy new SSL files to Zimbra Letsencrypt folder then change owner
to Zimbra.

# cp /etc/letsencrypt/live/yourdomain.com/* .

# chown zimbra:zimbra /opt/zimbra/ssl/letsencrypt/*

Add X3 root certificate to our chain.pem as described in here at the


bottom of chain.pem
# vim /opt/zimbra/ssl/letsencrypt/chain.pem

-----BEGIN CERTIFICATE-----

OUR CHAIN PART

-----END CERTIFICATE-----

-----BEGIN CERTIFICATE-----

MIIDSjCCAjKgAwIBA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xV3bqxbYo

Ob8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ

-----END CERTIFICATE-----

Now let’s check our certificates are verified via Zimbra certificate
manager

# su zimbra
$ /opt/zimbra/bin/zmcertmgr verifycrt comm privkey.pem cert.pem chain.pem

If you see done message in your console, first make a backup of


course…

# cp -a /opt/zimbra/ssl/zimbra /opt/zimbra/ssl/zimbra.$(date "+%Y%m%d")

Before deploying the SSL Certificate, you need to move the


privkey.pem under the Zimbra SSL commercial path, like this:

# cp /opt/zimbra/ssl/letsencrypt/privkey.pem
/opt/zimbra/ssl/zimbra/commercial/commercial.key

We are ready to deploy new certificates, run deploycrt command via


zmcertmgr.

# su zimbra

$ /opt/zimbra/bin/zmcertmgr deploycrt comm cert.pem chain.pem

At last, restart.

# su zimbra

$ zmcontrol restart

Hopefully you now have renewed letsencrypt SSL of your Zimbra


server. You can check your SSL here.

You might also like