Installing an SSL certificate on Zimbra
- Category : SSL Installation
- Posted on : Sep 17, 2021
- Views : 1,381
- By : HostSEO
Once an SSL order with the CSR code is activated and all validation requirements are met, the SSL certificate will be issued and sent to your administrative contact email address. You can also download the SSL certificate in your Namecheap account. When the SSL certificate is received, you are welcome to start the installation process.
Zimbra mail server supports two possible ways of SSL installation:
SSL certificate installation via Zimbra Administration Console
- Click Configure in the left-hand pane of the main menu:
- In the next window, click Certificates and pick up Install Certificate:
- You will see a separate window where you need to choose the required mail server. Click Next afterwards:
- Pick Install the commercially signed certificate to start the installation process:
- Review all information that was used for CSR generation. If the information is correct, click Next:
- Upload the SSL certificate file, root certificate and intermediate certificates received from the Certificate Authority.
Note: You can download the root and intermediate certificates along with your server certificate from your Namecheap account. - On the next step, click Install to install the chosen SSL certificate. The installation process can take a few minutes:
- Upload the SSL certificate file, root certificate and intermediate certificates received from the Certificate Authority.
- When the SSL installation process is completed, you will see the notification:
- To apply changes, you need to restart Zimbra services like zimbra user in a CLI session:
sudo su
su zimbra
Once the default user is switched to the zimbra user, run this command to restart services:
zmcontrol restart
- When all services are restarted, new SSL certificate details can checked here:
The SSL certificate has been successfully installed for the following services:
LDAP service: port 389
Mailbox service: ports 8443, 7071
MTA service: ports 25 (SMTP TLS), 465 (SMTP SSL), 7110 (POP3 TLS), 7143 (IMAP TLS), 7993 (IMAP SSL), 7995 (POP3 SSL)
Proxy service: 443, 110 (POP3 TLS), 143 (IMAP TLS), 993 (IMAP SSL), 995 (POP3 SSL).
It is possible to check SSL installation by using this online tool: https://decoder.link/sslchecker/.
SSL certificate installation via Zimbra Certificate Manager (command line interface)
A Zimbra package has the zmcertmgr tool to manage SSL certificates.
For version 8.6 or lower, this tool must be run as root. Run this command in the terminal to switch from the default user to the root:
sudo su
Starting from version 8.7 this tool should be run as zimbra user.
Run these commands to switch from the default user to the zimbra user:
sudo su
su zimbra
- To start the installation process, you need to upload the SSL certificate file (server_domain_com.crt) and CA bundle file (server_domain_com.ca-bundle) to any folder to your hosting server on the temporary basis. For this example, SSL files have been uploaded to the /opt/ directory.
- Verify that your certificate received from the Certificate Authority matches the private key generated along with the CSR: /opt/zimbra/bin/zmcertmgr verifycrt comm
/opt/zimbra/ssl/zimbra/commercial/commercial.key /opt/server_domain_com.crt /opt/server_domain_com.ca-bundle
The output should look like:
Note: You can download the root and intermediate certificates along with your server certificate from your Namecheap account.
- Deploy your commercial certificate.
/opt/zimbra/bin/zmcertmgr deploycrt comm /opt/server_domain_com.crt /opt/server_domain_com.ca-bundle
- Deploy your commercial certificate.
The successful output should look like:
- Verify that the correct certificate has been deployed.
/opt/zimbra/bin/zmcertmgr viewdeployedcrt
- Verify that the correct certificate has been deployed.
For example, the details of the PositiveSSL certificate will look like:
- To apply changes, you need to restart Zimbra services like zimbra user:
sudo su
su zimbra
Once the default user is switched to zimbra user, run this command to restart services:
zmcontrol restart
When all services are restarted, new SSL certificate details can checked by using this online tool: https://decoder.link/sslchecker/.
How to deploy a Multi-Domain SSL certificate or SSL Wildcard certificate installed on another hosting server for Zimbra?
- Copy the SSL certificate file (server_domain_com.crt), CA bundle file (server_domain_com.ca-bundle) and private key (commercial.key) to any folder of your hosting server on the temporary basis. For this example, SSL files have been uploaded to the /opt/ directory.
- Copy the private key from the temporary location to the default folder of commercial certificates.
cp /opt/commercial.key /opt/zimbra/ssl/zimbra/commercial/
- Set default permissions for the private key.
chmod 640 /opt/zimbra/ssl/zimbra/commercial/commercial.key
- Verify that your certificate received from the Certificate Authority matches the private key
/opt/zimbra/bin/zmcertmgr verifycrt comm /opt/zimbra/ssl/zimbra/commercial/commercial.key /opt/server_domain_com.crt /opt/server_domain_com.ca-bundle
The output should look like:
- Deploy your commercial certificate.
/opt/zimbra/bin/zmcertmgr deploycrt comm /opt/server_domain_com.crt /opt/server_domain_com.ca-bundle
The successful output should look like:
- Verify that the correct certificate has been deployed.
/opt/zimbra/bin/zmcertmgr viewdeployedcrt
For example, the details of the PositiveSSL certificate will look like:
- To apply changes, you need to restart Zimbra services like zimbra user in the terminal:
sudo su
su zimbra
Once the default user is switched to zimbra user, run this command to restart services:
zmcontrol restart
When all services are restarted, new SSL certificate details can checked by using this online tool: https://decoder.link/sslchecker.
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu