Results 1 to 2 of 2

Thread: ssl and virtual hosts

  1. #1
    Join Date
    Nov 2011
    Rep Power

    Default ssl and virtual hosts

    I'm trialling 7.1.3 NE to determine if it will meet my needs.

    My intention is to implement a server for hosting multiple customer domains. Each customer domain will have it's own ssl certificate covering multiple virtual hostnames (public, webmail, mobile etc.). For security reasons, all http must be redirected to https. Similarly imap to imaps, pop3 to pop3s.

    Following various forum & wiki posts I've managed to get a commercial domain certificate installed using the cli commands. The certificate is for multiple hostnames on the same domain using subject alt names, with the intention of validating the public service hostname and a few virtual domains. FWIW, the server and the domain of the commercial certificate do not share the same ip address.

    As it currently stands, the commercial certificate is correctly presented when connecting on one of the virtual domains and the public service hostname, but when connecting on a second virtual domain, the server's self signed cert is presented.

    Zimbra-proxy is installed and both web server mode and proxy server mode were configured to redirect.

    Further clarification through the use of named examples:
    server hostname: (self signed cert, fine for mta, ldap etc.)
    server ip:

    public service hostname: (commercial cert is presented - ok)
    virtual host: (commercial cert is presented - ok)
    virtual host: (self signed cert presented - not ok) ip ip ip

    Both virtual domains were configured as per the admin guide instructions:
    zmprov md +zimbraVirtualHostName "" +zimbraVirtualIPAddress ""
    zmprov md +zimbraVirtualHostName "" +zimbraVirtualIPAddress ""

    I didn't do this for but that doesn't seem to matter as it works anyway.

    The certificate's subject CN is
    The certificate's subject alt names are: in that order.

    Anyone have any ideas what's going on here?

    If it only worked for the webmail virtual hostname, I'd suspect that each virtual hostname should be on its own IP, but because it works for both the webmail and public names on the same IP it's confusing.

    I'm not sure if it's partly working by pure chance, or if I've configured something incorrectly. Searching the NE admin guide, these forums and the wiki, I'm not finding a solution.

    I need to get this ssl configuration aspect clearly understood and working before I can commit to purchasing the product. Which raises another point. Is there more detailed documentation available for this product once you buy into it, or is the NE admin guide the extent of the documentation available?

    Thanks for your time.

  2. #2
    Join Date
    Nov 2011
    Rep Power


    An update for anyone that finds themselves in the same predicament.

    1.) Don't follow the wiki article as it's not applicable to v7.1.3 which seems to implement everything described there natively.

    2.) Put each virtual host on its own IP address.
    zmprov md +zimbraVirtualHostName "" +zimbraVirtualIPAddress ""
    zmprov md +zimbraVirtualHostName "" +zimbraVirtualIPAddress ""

    3.) I still have no idea why the public service hostname which is on the same ip as the first virtual host presents the correct certificate.

    4.) During the trial period access is permitted to the Zimbra Support Portal, but there's no additional documentation available there that isn't already available to the general public. If required, you can submit support cases there though.

    5.) The straightforward procedure to implement a domain ssl cert outlined in the ne admin guide 7.1.2 doesn't appear to work. /opt/zimbra/conf/domaincerts does not exist, nor is it created when following the documented procedure. This is surely a bug, but beyond my current skills or time constraints to track down. Follow the forum post here testing each step as you progress, or the wiki article here. Just remember to use a unique IP for each virtual host. SNI doesn't appear to be implemented yet (7.1.3_P1).

Similar Threads

  1. SSL certificate for a specific (virtual) domain?
    By ypong in forum Administrators
    Replies: 4
    Last Post: 08-30-2011, 08:08 PM
  2. Virtual domains and SSL certificates
    By Samuel Castro in forum Administrators
    Replies: 3
    Last Post: 05-13-2008, 07:37 AM
  3. SSL certificate per virtual host?
    By Leesbian in forum Installation
    Replies: 4
    Last Post: 03-14-2008, 09:52 AM
  4. Replies: 1
    Last Post: 01-02-2008, 08:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts