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 02-20-2011, 05:10 PM
Junior Member
 
Posts: 5
Default [SOLVED] export certificate to zimbra

hi folks,

i already read tutorials about import certificates to zimbra in wiki, but i don't get import the certificates from my external openldap server, that authenticate zimbra users , so when i check the option to use ssl, a series of warms shows in the debug box, alert me that certificate is not valid...

i configured my certicates and CA as follow, using openssl:

#generate CA
$ /usr/lib/ssl/misc/CA.pl -newca

#generate certificates
$ /usr/lib/ssl/misc/CA.pl -newreq

# so i have the private key (newkey.pem), and the public key (newreq.pem)

#i sign the certificate
$ /usr/lib/ssl/misc/CA.pl -sign

# this generate a sign public key called newcert.pem

# now i remove the password from private key
$ openssl rsa -in newkey.pem -out newkey.nopass.pem

# In final i have this files
newcert.pem newkey.nopass.pem newkey.pem newreq.pem

# and my ca is called cacert.pem

in slapd.conf i set TLSVerifyClient as never...

so folks, how can i solve this problem ?

ps. sorry about my english

Last edited by diegolcf; 02-22-2011 at 05:16 PM..
Reply With Quote
  #2 (permalink)  
Old 02-21-2011, 12:13 PM
Junior Member
 
Posts: 5
Default

i use this command to import certificate
/opt/zimbra/java/bin/keytool -import -file cacert.pem -keystore /opt/zimbra/java/jre/lib/security/cacerts -alias <alias>

and shows this message
keytool error: java.lang.Exception: Input not an X.509 certificate
Reply With Quote
  #3 (permalink)  
Old 02-22-2011, 05:32 PM
Junior Member
 
Posts: 5
Default

it's quite simple to solve this problem....

1) first convert a CA certificate to DER format
$openssl x509 -in cacert.pem -inform PEM -out cacert.der -outform DER

2) then, make a import
$ /opt/zimbra/java/bin/keytool -import -file cacert.der -keystore /opt/zimbra/java/jre/lib/security/cacerts -alias <alias>

ps. forum administrator, please, help-me to change the title of this post, the correct is import zimbra certificate, not export certificate
Reply With Quote
  #4 (permalink)  
Old 04-18-2011, 02:54 AM
Elite Member
 
Posts: 296
Default

can be used this for comercial certs?
i am having trouble to import a commercial rapid ssl cert, the error is the same:



Code:
/opt/zimbra/log/scripts/rapid-ssl ]# /opt/zimbra/bin/zmcertmgr deploycrt comm /opt/zimbra/log/scripts/rapid-ssl/commercial.crt /opt/zimbra/log/scripts/rapid-ssl/commercial_ca.crt 
** Verifying /opt/zimbra/log/scripts/rapid-ssl/commercial.crt against /opt/zimbra/ssl/zimbra/commercial/commercial.key
Certificate (/opt/zimbra/log/scripts/rapid-ssl/commercial.crt) and private key (/opt/zimbra/ssl/zimbra/commercial/commercial.key) match.
Valid Certificate: /opt/zimbra/log/scripts/rapid-ssl/commercial.crt: OK
** Copying /opt/zimbra/log/scripts/rapid-ssl/commercial.crt to /opt/zimbra/ssl/zimbra/commercial/commercial.crt
** Appending ca chain /opt/zimbra/log/scripts/rapid-ssl/commercial_ca.crt to /opt/zimbra/ssl/zimbra/commercial/commercial.crt
** Importing certificate /opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt to CACERTS as zcs-user-commercial_ca...failed.
XXXXX ERROR: failed to import certficate.

Errore keytool: java.lang.Exception: L'input non è un certificato X.509
the commercial rapid was one with 1024 bits, and is expired just yesterday

Last edited by maumar; 04-18-2011 at 03:04 AM..
Reply With Quote
  #5 (permalink)  
Old 04-18-2011, 02:56 AM
Elite Member
 
Posts: 296
Default

Quote:
Originally Posted by diegolcf View Post
$ /opt/zimbra/java/bin/keytool -import -file cacert.der -keystore /opt/zimbra/java/jre/lib/security/cacerts -alias <alias>
what should be used as alias?
what do you used?

tia
Reply With Quote
  #6 (permalink)  
Old 04-18-2011, 03:21 AM
Elite Member
 
Posts: 296
Default

there was a 0a as first char of commercial_ca.crt, glub ;(
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.