NEW LOCATION

Olá Brazil Brazil NVMe-powered VPS Plans in Brazil Now Available.

Deploy Instantly
  • +357 2425 0808
  • Login
  • English

Home

Blog

How To Install SSL Certificate on Zimbra...

How To Install SSL Certificate on Zimbra Collaboration Server via command line (CLI)

How To Install SSL Certificate on Zimbra Collaboration Server via command line (CLI)

NetShop ISP

NetShop ISP · Blog Author

Aug 30, 2022 · Technical Tutorials

We are publishing this Zimbra tutorial as a lot of customers have reported an issue when trying to install their SSL Certificate using Zimbra’s Admin Console (GUI).

The steps listed below have been proof-tested on Zimbra Collaboration Open Source and Network editions (ZCS 8.7). If you are using an older or newer version of Zimbra and you are a NetShop ISP customer please contact our Support team for assistance.

Installing SSL Certificate using the CLI

Pre-requisites

  1. Zimbra Collaboration Suite (Open Source or Network) installed on a Linux server
  2. SSH access on the server
  3. Active (non-expired) SSL Certificate from your vendor (Don’t have one? Order EssentialSSL at €16.85/year)
  4. You have the following SSL Certificate files: Bundle (Root, Intermediate) and Certificate
  5. SSL key exists on your Zimbra server (/opt/zimbra/ssl/zimbra/commercial/commercial.key)

Step 1 – Upload Certificate on Server

As zimbra user, create a temporary file under (/tmp) and paste the Root and Intermediate certificates content (may be a single file named Bundle):

[root@zimbra-netshop /]$ su - zimbra
[zimbra@zimbra-netshop ~]$ vi /tmp/commercial_ca.crt

Save the file and exit.

Then, place the SSL Certificate in /tmp/commercial.crt

[zimbra@zimbra-netshop ~]$ vi /tmp/commercial.crt

Save the file and exit.

Step 2 – Verify SSL Certificate and Key

Do a dry-run to check if your Certificate chain (Certificate, Intermediate CA, Root) and your private key are OK. If you receive an error after executing the following command, contact your Zimbra server administrator.

[zimbra@zimbra-netshop ~]$ /opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /tmp/commercial.crt /tmp/commercial_ca.crt  

Ideal output should be:

** Verifying /tmp/commercial.crt against /opt/zimbra/ssl/zimbra/commercial/commercial.key Certificate (/tmp/commercial.crt) and private key (/opt/zimbra/ssl/zimbra/commercial/commercial.key) match.
Valid Certificate: /tmp/commercial.crt: OK

Step 3 – Deploy Certificate with zmcertmgr command

Deploy your SSL certificate with zmcertmgr command:

[zimbra@zimbra-netshop ~]$ /opt/zimbra/bin/zmcertmgr deploycrt comm /tmp/commercial.crt /tmp/commercial_ca.crt

Ideal output should be:

[ … ]
** Installing proxy certificate and key…done.
** Creating pkcs12 file /opt/zimbra/ssl/zimbra/jetty.pkcs12…done.
** Creating keystore file /opt/zimbra/mailboxd/etc/keystore…done.
** Installing CA to /opt/zimbra/conf/ca…done.

Step 4 – Restart Zimbra Services

Execute the following command as zimbra user:

[root@zimbra-netshop /]$ su zimbra
[zimbra@zimbra-netshop ~]$ zmcontrol restart

You are all set! You can navigate to your Zimbra server’s hostname and confirm you can access the Web interface via https.

Press Releases
75

Free VPS Trial

No Credit Card Required.

Recent Posts

The Importance of Server Backups: Ensuring Data Security and Business Continuity

The Importance of Server Backups: Ensuring Data Security and Business Continuity

24 September, 2024

The Critical Role of Server Time Synchronization in MetaTrader 5 (MT5) Cluster

The Critical Role of Server Time Synchronization in MetaTrader 5 (MT5) Cluster

04 September, 2024

NetShop ISP Expands Global Cloud Footprint in São Paulo, Brazil (LatAm)

NetShop ISP Expands Global Cloud Footprint in São Paulo, Brazil (LatAm)

30 August, 2024

Microsoft Security Alert: Zero-Click IPv6 Vulnerability on Windows Servers [CVE-2024-38063]

Microsoft Security Alert: Zero-Click IPv6 Vulnerability on Windows Servers [CVE-2024-38063]

17 August, 2024

How To Connect (RDP) on Windows Server 2022 from Linux Ubuntu PC

How To Connect (RDP) on Windows Server 2022 from Linux Ubuntu PC

16 August, 2024

#letushostyou

Award Winning Hosting Provider established in 2004.

120 Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca 6031, Cyprus

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

Storage VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Addons

Premium DNS

Email Hosting

Cloud Backup

DDoS Protection

Licenses

SSL Certificates

Domain Names

Premium SLAs

About Us

Data Center Locations

Looking Glass

Our Company

Contact Us

Careers in Cyprus

Become a Partner

Awards

Certifications

© 2024 S.S. NetShop Internet Services Ltd. All rights reserved.  Terms & Conditions  |  Privacy Policy
CY Reg. Number: HE 217340 | EU VAT Number: CY10217340J

Visa
Mastercard
PayPal
Bitcoin
Tether
Ethereum
Litecoin
Wise
Revolut
Wire Transfer