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 04-22-2010, 07:31 AM
Intermediate Member
 
Posts: 18
Default [SOLVED] Installing commercial certificate issue

Hi.
We use community version 6.
When i try to install commercial certificate into Zimbra i get errors:

./zmcertmgr deploycrt comm /tmp/server.crt /tmp/ca_bundle.crt
** Verifying /tmp/server.crt against /opt/zimbra/ssl/zimbra/commercial/commercial.key
Certificate (/tmp/server.crt) and private key (/opt/zimbra/ssl/zimbra/commercial/commercial.key) match.
Error loading file /tmp/ca_bundle.crt
usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-crl_check] [-engine e] cert1 cert2 ...
recognized usages:
sslclient SSL client
sslserver SSL server
nssslserver Netscape SSL server
smimesign S/MIME signing
smimeencrypt S/MIME encryption
crlsign CRL signing
any Any Purpose
ocsphelper OCSP helper
XXXXX ERROR: Invalid Certificate:
XXXXX ERROR: provided cert isn't valid.

I've used this article to install cert: Installing a RapidSSL Commercial Certificate - Zimbra :: Wiki

Someone has similar problem?
Thx.
Reply With Quote
  #2 (permalink)  
Old 04-22-2010, 10:15 AM
Zimbra Employee
 
Posts: 114
Default

The text you specified listed the problem. It says it cannot load /tmp/ca_bundle.crt for some reason. Does the file not exist? Does it contain a valid certificate?
Reply With Quote
  #3 (permalink)  
Old 04-22-2010, 10:30 AM
Intermediate Member
 
Posts: 18
Default

I know that ca_bundle.crt is the issue but article Installing a RapidSSL Commercial Certificate - Zimbra :: Wiki says that i need to download that ca_bundle.crt file and copy it to /tmp:

Download the appropriate bundle file from http://www.geotrust.com/resources/ro..._Authority.cer . RapidSSL certificates are always signed by Equifax!! Save this as ca_bundle.crt

So i did it and have this error like above in my first post.

Thx. for replay.
Reply With Quote
  #4 (permalink)  
Old 04-22-2010, 10:32 AM
Zimbra Employee
 
Posts: 114
Default

But what does the file look like on the server? Are you running zmcertmgr as root?
Reply With Quote
  #5 (permalink)  
Old 04-22-2010, 11:36 AM
Intermediate Member
 
Posts: 18
Default

I do exactly all steps like in this article, step by step.
Reply With Quote
  #6 (permalink)  
Old 04-22-2010, 01:22 PM
Intermediate Member
 
Posts: 18
Default

Previous i've downloaded http://www.geotrust.com/resources/ro..._Authority.cer by Windows Firefox then copy&paste into zimbra host by putty.
Now i used wget -c http://www.geotrust.com/resources/ro..._Authority.cer and copied this file into /tmp/ca_bundle.crt
Then cd /opt/zimbra/bin
and ./zmcertmgr deploycrt comm /tmp/server.crt /tmp/ca_bundle.crt
Now i have other info:

** Verifying /tmp/server.crt against /opt/zimbra/ssl/zimbra/commercial/commercial.key
Certificate (/tmp/server.crt) and private key (/opt/zimbra/ssl/zimbra/commercial/commercial.key) match.
Valid Certificate: /tmp/server.crt: OK
** Copying /tmp/server.crt to /opt/zimbra/ssl/zimbra/commercial/commercial.crt
** Appending ca chain /tmp/ca_bundle.crt to /opt/zimbra/ssl/zimbra/commercial/commercial.crt
** Saving server config key zimbraSSLCertificate...done.
** Saving server config key zimbraSSLPrivateKey...done.
** Installing mta certificate and key...done.
** Installing slapd certificate and key...done.
** Installing proxy certificate and key...done.
** Creating pkcs12 file /opt/zimbra/ssl/zimbra/jetty.pkcs12...failed.

XXXXX ERROR: failed to create jetty.pkcs12
No certificate matches private key

What does it mean? How to fix it?

Thx.
Reply With Quote
  #7 (permalink)  
Old 04-23-2010, 06:33 AM
Intermediate Member
 
Posts: 18
Default

So, from now i cannot send anything because: thereis no certificate to communicate. I use tsl to communicate with server:

Starting ldap...Done.
Failed.
Failed to start slapd. Attempting debug start to determine error.
TLS: error:0906D066:PEM routines:PEM_read_bio:bad end line pem_lib.c:749
TLS: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib ssl_rsa.c:491
main: TLS init def ctx failed: -1

Any idea?

Thx.
Reply With Quote
  #8 (permalink)  
Old 04-23-2010, 09:29 AM
Intermediate Member
 
Posts: 18
Default

I've created new, signed myself cert and Zimbra works fine.
Ok, someone can help me to install commercial cert on Zimbra?

Thx.
Reply With Quote
  #9 (permalink)  
Old 04-30-2010, 08:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by rosol View Post
XXXXX ERROR: failed to create jetty.pkcs12
No certificate matches private key

What does it mean? How to fix it?
There are several threads that cover this issue, do any of them help?
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 05-16-2010, 11:57 AM
Intermediate Member
 
Posts: 18
Default

Thank you for replay.
This thread work for me fine:
[SOLVED] Certificate problem with 6.0.5

Again thank you for good advice.
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.