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 02-12-2008, 09:09 AM
Special Member
 
Posts: 108
Unhappy [SOLVED] self-signed cert in 5.02_GA failed

I upgraded from 5.0 to 5.02 over the weekend and all went well. I tried generating a new self-signed certificate using the Admin wizard but it failed.

This morning, I am no longer able to access the client or the admin. It seems to be receiving mail OK.

I suspect the problem cropped up now as last night was the first backup of the system since the upgrade which required downing Zimbra and then bringing it back up following the backup.

When I try to log into the Zimbra client with Firefox I get the following alert:

Code:
Firefox can't connect securely to mail.mydomain.com because the site uses a security protocol which isn't enabled
How do I go about generating a new cert using the backend? I've done this before in 4.5 but not in 5.0.
Reply With Quote
  #2 (permalink)  
Old 02-12-2008, 09:27 AM
Moderator
 
Posts: 6,237
Default

zmcertmgr
like:
zmcertmgr deploycrt self -new
Reply With Quote
  #3 (permalink)  
Old 02-12-2008, 09:33 AM
Special Member
 
Posts: 108
Default

Thanks for the quick reply!

I tried that and got the following output:

Code:
** Installing Certificates from /opt/zimbra/ssl/zimbra/server/server.crt
** Backup /opt/zimbra/ssl/zimbra to /opt/zimbra/ssl/zimbra.20080212093124 
** Creating /opt/zimbra/conf/zmssl.cnf...done
** Signing cert request /opt/zimbra/ssl/zimbra/server/server.csr...failed.

Using configuration from /opt/zimbra/ssl/zimbra/ca/zmssl.cnf
Check that the request matches the signature
Signature ok
The stateOrProvinceName field needed to be the same in the
CA certificate (N/A) and the request (WA)

** Creating pkcs12 file /opt/zimbra/ssl/zimbra/jetty.pkcs12...failed.

XXXXX ERROR: failed to create jetty.pkcs12
No certificate matches private key
So obviously more than just the cert got hosed. How do I resolve? Is there instructions somewhere? I looked in the Wiki but only found entries for 4.5x

Thanks so much for your help!
Reply With Quote
  #4 (permalink)  
Old 02-12-2008, 09:39 AM
Moderator
 
Posts: 6,237
Default

Do a:
zmcertmgr createca -new
zmcertmgr deploycrt self -new
Reply With Quote
  #5 (permalink)  
Old 02-12-2008, 09:48 AM
Special Member
 
Posts: 108
Default

OK,

Code:
 ./zmcertmgr createca -new
** Creating CA cert /opt/zimbra/ssl/zimbra/ca/ca.pem...done.
But still when I do:

Code:
./zmcertmgr deploycrt self -new
** Installing Certificates from /opt/zimbra/ssl/zimbra/server/server.crt
** Backup /opt/zimbra/ssl/zimbra to /opt/zimbra/ssl/zimbra.20080212094352 
** Creating /opt/zimbra/conf/zmssl.cnf...done
** Signing cert request /opt/zimbra/ssl/zimbra/server/server.csr...failed.

Using configuration from /opt/zimbra/ssl/zimbra/ca/zmssl.cnf
Check that the request matches the signature
Signature ok
The stateOrProvinceName field needed to be the same in the
CA certificate (N/A) and the request (WA)

** Creating pkcs12 file /opt/zimbra/ssl/zimbra/jetty.pkcs12...failed.

XXXXX ERROR: failed to create jetty.pkcs12
No certificate matches private key
So it looks like it is trying to match something up with some of the data I had entered in the GUI the other day as it's picking up that the stateOrProvinceName field contains "WA" for "Washington". So there seems to be something lingering here. Do I need to blow anything away like I used to do with the cert and the key in 4.5?

Thanks again for the help Mike, I sure do appreciate you guys!
Reply With Quote
  #6 (permalink)  
Old 02-12-2008, 09:55 AM
Moderator
 
Posts: 6,237
Default

Possibly a left over /opt/zimbra/ssl/zimbra/ca/zmssl.cnf or /opt/zimbra/conf/zmssl.conf from the 5.0 thats restricting the locale to match the CA - check the /opt/zimbra/conf/zmssl.conf.in - see if you can find where it's getting it from, then rerun the 2 commands.

You could manually set it (zmcertmgr deploycrt self -new SUBJECT='...") but the default should be N/A already: "/C=US/ST=N_A/L=N_A/O=Zimbra Collaboration Suite/CN=server.domain.com"

Last edited by mmorse; 02-12-2008 at 10:16 AM..
Reply With Quote
  #7 (permalink)  
Old 02-12-2008, 10:43 AM
Special Member
 
Posts: 108
Thumbs up

BINGO!

That was it! The key was the line in my output:

Code:
Using configuration from /opt/zimbra/ssl/zimbra/ca/zmssl.cnf
I deleted that file and then re-ran the two command you had indicated and this time it worked!

Again, thanks Mike for the excellent support!

jimbo
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.