Zimbra Tips : How to Configure SSL on Zimbra Apache (Port 7780)

Posted by

I get a question about how to configure SSL on port 7780 in Zimbra. This port used for access policyd web admin. When access Zimbra Apache on port 7780, by default will use HTTP instead of HTTPS.

This guide will help you how to configure SSL in Zimbra Apache (7780).

Open file httpd.conf

vi /opt/zimbra/conf/httpd.conf

Please remove # from LoadModule ssl_module /opt/zimbra/common/lib/apache2/modules/mod_ssl.so. Please add these line in the bottom

SSLEngine on
SSLCertificateFile /opt/zimbra/ssl/zimbra/commercial/commercial.crt
SSLCertificateKeyFile /opt/zimbra/ssl/zimbra/commercial/commercial.key
SSLCertificateChainFile /opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt

Save and add mod_ssl to modules folder

curl -k https://raw.githubusercontent.com/imanudin11/lainlain/master/mod_ssl.so > /opt/zimbra/common/lib/apache2/modules/mod_ssl.so

Restart Zimbra Apache

su - zimbra
zmapachectl restart

The following is an example on my browser when access port 7780 using https.

Good luck and hopefully useful 🙂

13 comments

        1. Hello,
          Please try to use mod_ssl from apache.

          apt-get install apache
          or
          yum install mod_ssl
          

          Please search mod_ssl using find

          find / | grep -i mod_ssl
          

          Then, you can replace mod_ssl with mod_ssl from apache/http

          1. Dear Pro,
            “Then, you can replace mod_ssl with mod_ssl from apache/http”
            Please, Detailed instructions help me.
            Many Thanks!

          2. Hello,
            You can try this one :

            yum install mod_ssl
            cp /usr/lib64/httpd/modules/mod_ssl.so /opt/zimbra/common/lib/apache2/modules/mod_ssl.so
            
  1. halo mas, mau tanya mas,gmna cara install ssl zimbra ya,sya ada sertifikat nya sdiri mas.
    apakah harus install dlu apache nya mas? atau gman mas?

    satu lagi mas,,sya
    zmprov md sbs.com zimbraAmavisDomainDisclaimerHTML “”The contents of this e-mail and attachments are confidential and subject to legal privilege””
    sprti itu error mas.
    error nya ini mas.

    ERROR: account.INVALID ATTR NAME (invalid attr name: invalid attr name – unable to modify attributes: ldap host=sbs.com:389: damage: attribute type undefined) (cause: com.zimbra.cs.ldap.LdapException$LdapInvalidAttrNameException invalid attr name – unable to modify attributes: ldap host=sbs.com:389: damage: attribute type undefined)

  2. My Centos version 6.10, Processor 64 Bit,
    I am getting this error:
    [zimbra@smtpgw ~]$ zmapachectl restart
    Stopping apache…httpd: Syntax error on line 127 of /opt/zimbra/conf/httpd.conf: Cannot load /opt/zimbra/common/lib/apache2/modules/mod_ssl.so into server: /opt/zimbra/common/lib/apache2/modules/mod_ssl.so: undefined symbol: unixd_config
    failed.
    Starting apache…httpd: Syntax error on line 127 of /opt/zimbra/conf/httpd.conf: Cannot load /opt/zimbra/common/lib/apache2/modules/mod_ssl.so into server: /opt/zimbra/common/lib/apache2/modules/mod_ssl.so: undefined symbol: unixd_config
    failed.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.