[Cloudmatika] How to Use a SECTIGO Comodo SSL/TLS Certificate on Zimbra

Security when browsing on the Internet is a need for all citizens. One indication whether the page you are visiting is safe is the SSL/TLS status on the page. This can be seen next to the web address with a logo in the form of a lock and using https. This SSL/TLS works to encrypt data transmission from the user to the server on that page. Cloudmatika, as one of the best hosting providers in Indonesia, provides SSL/TLS of SECTIGO, a product of Comodo Inc, which is one of the world's best available providers of SSL/TLS. For SSL/TLS of SECTIGO, the extension obtained for SSL/TLS is .crt. Here's a way to use the .crt file for your Zimbra webmail to make your webmail safer and user-friendly.


Method 1 : Through Zimbra Admin Console


Step 1: Login to Zimbra Admin Console via browser



Step 2: On the left-hand side of the navigation panel, on the Home menu select the Configure option and select Certificate


Step 3: On the right-hand side of the navigation panel, select an upside-down triangle and select Install Certificate


Step 4: Certification Installation Wizard will pop up

  • Select a target server to install its certificate, then click Next


Step 5: Select installation options

  • Make sure for the targer server it already matches the previous option. For SSL/TLS of SECTIGO, select the option "Install the commercial signed certificate". Then click Next


Step 6: Recheck the input data

  • If everything is in order, click Next


Step 7: Upload file

  • Received files will be 4 zips. Upload them by name and if files are lacking, contact admin. After that click Install

Step 8: Restart Zimbra

  • Once the installation process is completed, reset Zimbra and return to Admin Console and select the Home > Configure > Certificate. The display will appear the following way

Method 2: Through Command Line Interface (CLI)

Step 1: Certificate will be sent via email in ZIP format

  • ZIP is located in the email attachment and the certificate file is located in the body of that email. 

Step 2: Copy certificate Certificate paste

  • Certificate of an email body can be copied and paste by using vi, nano or notepad. File is stored in a commercial.crt name into the /opt/zimbra/ssl/zimbra/commercial/ directory
cd /opt/zimbra/ssl/zimbra/commercial/
vi commercial.crt --OR-- nano commercial.crt

Step 3: Copy paste Private key

  • Private key of the email body can be copied and paste by using vi, nano, or notepad. File is saved in a commercial.key into the /opt/zimbra/sssl/zimbra/commercial/ directory
cd /opt/zimbra/ssl/zimbra/commercial/
vi commercial.key --OR-- nano commercial.key

Step 4: Verify certificate and private key

  • Use the following syntax to check the certificate chain
/opt/zimbra/bin/zmcertmgr verifycrt comm <commercial.key> <commercial.crt>

        example output :

** Verifying 'commercial.crt' against 'commercial.key
Certificate 'commercial.crt' and private key 'commercial.key' match.
** Verifying 'commercial.crt' against '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt'
Valid certificate chain : commercial.crt: OK

Step 5: Deploy certificate

  • If output on step 4 is OK, use the following syntax to deploy the certificate to Zimbra mail server
/opt/zimbra/bin/zmcertmgr deploycrt comm <commercial.key> <commercial.crt>

        example output :

...
** Creating /opt/zimbra/conf/ca/commercial_ca_3.crt
** Creating CA hash symlink 'ee64a828.0' -> 'commercial_ca_3.crt'
** Creating /opt/zimbra/conf/ca/commercial_ca_4.crt
** Creating CA hash symlink 'ee64a828.1' -> 'commercial_ca_4.crt'

Step 6: Restart Zimbra

  • If output on step 5 does not exist error then execute syntax 
zmproxyctl restart

        and

zmcontrol restart


And Voila~ Your server Webmail is encrypted by SSL/TLS and it's safer if you want to communicate between computers.

Happy programming.


[Cloudmatika] How to Convert an SSL/TLS File to .pfx on Linux
[Cloudmatika] How to Open a Port on a VPS