Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-2009, 06:27 AM
Intermediate Member
 
Posts: 17
Default NGINX TLS certificates

I'm using nginx for proxying pop/pops & imap/imaps. It has been configured with certificates for the ssl interfaces and everything works fine for SSL & non-SSL.

The issue I'm having is that for tls I can't configure nginx to use the pop certificate for pop and imap certificate for imap.

It can be seen in the mail configuration file for TLS it is only possible for the ssl_certificate to be referenced to one file and not separate files:


Code:
    $ egrep -i 'SSL|TLS' nginx.conf.mail
    # on whether cleartext login is available (see description for starttls)
    # For example, if starttls is set to only, then SASL PLAIN is not
    # available outside of TLS/SSL
    # TLS configuration
    ssl_prefer_server_ciphers   on;
    ssl_certificate             /opt/zimbra/conf/nginx.crt;
    ssl_certificate_key         /opt/zimbra/conf/nginx.key;
Ideally I would expect something similar to below, but I can't work out how I could do it and if it is even possible.

Code:
ssl_certificate_pop             /opt/zimbra/conf/nginx.crt_pop;
ssl_certificate_key_pop         /opt/zimbra/conf/nginx.key_pop;
ssl_certificate_imap             /opt/zimbra/conf/nginx.crt_imap;
ssl_certificate_key_imap      /opt/zimbra/conf/nginx.key_imap;
Reply With Quote
  #2 (permalink)  
Old 09-22-2009, 06:32 AM
Member
 
Posts: 10
Default

hi,

why do you want to split the certificates? you should use a *.yourdomain.com certificate.

Cheers
Markus
Reply With Quote
  #3 (permalink)  
Old 09-22-2009, 06:36 AM
Intermediate Member
 
Posts: 17
Default

yes, that is an option but security has stipulated that we can't have a global certificate such as:

*.domain.com

we have been delievered certifcates such as:

pop.domain.com
imap.domain.com
Reply With Quote
  #4 (permalink)  
Old 09-22-2009, 07:30 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

I'm not sure if there's a built-in way, but you could just edit the nginx.conf.mail.imaps and nginx.conf.mail.pops files and specify your certificates there. Of course, that won't hold during an upgrade, but that would be one way of doing it.. Just comment out the ssl references before the includes inside the file posted and include them in the server section of the respective services config files.
__________________
What a n00b!
Reply With Quote
  #5 (permalink)  
Old 09-22-2009, 07:42 AM
Intermediate Member
 
Posts: 17
Default

Thanks for the reply, that is what I thought as well, and that is what we have done for pop/imap SSL, but this file is only used for SSL and not TLS. Afaik TLS is configured in the file "nginx.conf.mail"

Code:
# POP3S proxy configuration
#
server
{
    listen              995;
    protocol            pop3;
    proxy               on;
    ssl                 on;
           ssl_certificate             /opt/zimbra/conf/pop3.crt;
           ssl_certificate_key         /opt/zimbra/conf/pop.key;
    sasl_service_name   "pop";
}
Reply With Quote
  #6 (permalink)  
Old 10-02-2009, 06:43 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

Hmm.. I'm not familiar with TLS configuration in nginx, but I would think the principle would be the same.. Can you just move that configuration to the individual services files?
__________________
What a n00b!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.