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

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 05-03-2009, 07:10 AM
Special Member
 
Posts: 130
Default Wrong data in CSR

Hello, all. We have been struggling a bit to integrate Zimbra with our existing OpenCA based PKI. We have a two server environment right now: a main Zimbra server with all services installed and activated except AntiSPAM on the MTA and then a second Zimbra server functioning as an Internet MTA in the DMZ. Generating the CSR for the main system went as expected.

However, when we created the Internet MTA and generated a CSR via the administration console, all seemed fine until we went to approve the CSR. The CSR has the cn of the main server and not the Internet MTA! We double checked by re-issuing the CSR but, sure enough, the same thing.

Argh!!! We attempted to issue the cert anyway by editing the request. We normally do this anyway in order to change the geographically oriented C=, O= into DC syntax, to add the missing subjAltName fields, to add non FQDN fields to the subjAltName (so the devices can be access via hostname by those in the same domain), and to add IP addresses to the subjAltName. We were assuming the problem was simply putting the wrong cn into the CSR and not passing the wrong key. WRONG! Zimbra is passing the main server key for the CSR for the separate MTA server. Our CA flags it as a duplicate key. Perhaps this is the way it is supposed to work but I assume it is a bug.

We'll try living with using the internally generated certs for the Internet MTA; it does not appear to be affecting communication yet.

We are running Zimbra GA16 on CentOS 5.3 in a VServer 2.3.x guest with kernel 2.6.28.7 - John

PS - we also noticed the subjAltName was missing from both requests
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
  #2 (permalink)  
Old 05-07-2009, 06:37 AM
Active Member
 
Posts: 27
Default

I had this same issue with a very similar setup, until I tried the entire processing using zmcertmgr via ssh directly on the mta machine.

I am still having the same issue with subjectAltName (which is baffling me some what), but I do have a cert installed on my MTA.
Reply With Quote
  #3 (permalink)  
Old 05-07-2009, 07:28 AM
Moderator
 
Posts: 2,207
Default

Did you open a bug (or vote for an existing bug, if it exists) about the missing subjectAltName in the CSR ?
Reply With Quote
  #4 (permalink)  
Old 05-07-2009, 07:58 AM
Active Member
 
Posts: 27
Default

I suppose I should clarify that my subjecAltName issue is not the same. Mine show up in the CSR, but not in the signed cert.
Reply With Quote
  #5 (permalink)  
Old 08-12-2009, 03:55 PM
Special Member
 
Posts: 130
Default

We have finally found a work around. We did everything from the command line with the poorly documented zmcertmgr. The following is adapted from our internal documentation:

We can try to do this from the command line as root:
cd /opt/zimbra/bin
[root@smtp bin]# ./zmcertmgr createcsr comm -new "/C=US/O=MyCompany/OU=MailServers/CN=smtp.mycompany.com" -subjectAltNames "smtp.mycompany.com,smtp"
The CSR is stored in /opt/zimbra/ssl/zimbra/commercial/commercial.csr
Copy it to the configurating computer so we can generate the cert.

Edit the request in the CA as it does not appear the SubjAltName fields actually make it into the CSR.

Copy the new cert and the CA.pem file to root's home directory on the server. The do as root:
cd /opt/zimbra/bin
./zmcertmgr deploycrt comm ~/smtp.pem ~/CA.pem

It isn't a fix but it is a workaround. Hope this helps - John
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
  #6 (permalink)  
Old 08-14-2009, 07:07 AM
Active Member
 
Posts: 45
Default

I too have had the same problem issuing a CSR from the CLI that includes the SubjAltNames. My problem is that I'm using GoDaddy to sign the Cert and can't edit the CA.

Did anyone bug this in bugzilla? I'll vote for it!
__________________
OS : Ubuntu 6.02 LTS
ZCS : zcs-NETWORK-6.0.8_GA_2661.UBUNTU6
Reply With Quote
  #7 (permalink)  
Old 08-14-2009, 08:14 AM
Special Member
 
Posts: 130
Default

I've not reported it.

It would be pretty ugly but I wonder if you could take the CSR into something like OpenCA (OpenCA Research Labs - Home Page), edit the CSR, extract it and then submit it to GoDaddy?
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
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.