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 11-16-2005, 10:30 AM
Junior Member
 
Posts: 8
Default Certificate question

Zimbra beta on RHEL4. The install went extremely well. Very impressive.

Everything seems to be working OK except that I am getting complaints about:

Nov 16 12:14:16 newmail postfix/smtpd[19821]: warning: cannot get certificate from file /opt/zimbra/conf/smtpd.crt

The file is indeed not there. Tried the create certificate tool but apparently that's for a different cert. This isn't causing any problems but it's generating a lot of error messages. What needs to be done to create this crt file?

TIA!
Reply With Quote
  #2 (permalink)  
Old 11-16-2005, 10:55 AM
Zimbra Employee
 
Posts: 2,103
Default cert install

after zmcreatecert

zmcertinstall mta /opt/zimbra/ssl/ssl/smtpd.crt /opt/zimbra/ssl/ssl/smtpd.key

postfix stop
postfix start
Reply With Quote
  #3 (permalink)  
Old 11-16-2005, 11:29 AM
Junior Member
 
Posts: 8
Default

I believe zmcreatecert ran during the install but I ran it again anyway:
zmcertinstall failed. The default shell for the zimbra account is bash

[zimbra@newmail ~]$ zmcreatecert
** Importing CA

keytool error: java.lang.Exception: Certificate not imported, alias already exists
** Creating keystore

** Creating server cert request

Generating a 1024 bit RSA private key
......++++++
.........++++++
unable to write 'random state'
writing new private key to '/opt/zimbra/ssl/ssl/server/server.key'
-----
** Signing cert request

Using configuration from /opt/zimbra/ssl/ssl/zmssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 8 (0x8)
Validity
Not Before: Nov 16 19:23:31 2005 GMT
Not After : Nov 16 19:23:31 2006 GMT
Subject:
countryName = US
stateOrProvinceName = N/A
organizationName = Zimbra Collaboration Suite
commonName = newmail.designtechnica.com
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
AB:57:91:DB:FE:DE:D4:0F:D4:86:8F:1B:5C:D3:A2:D1:69 :8F:61:E7
X509v3 Authority Key Identifier:
DirName:/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/CN=newmail.d
esigntechnica.com
serial:00

Certificate is to be certified until Nov 16 19:23:31 2006 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
unable to write 'random state'
Signature ok
subject=/C=US/ST=NA/L=NA/O=Zimbra/OU=Zimbra/CN=newmail.designtechnica.com
Getting CA Private Key
unable to write 'random state'
[zimbra@newmail ~]$ zmcertinstall mta /opt/zimbra/ssl/ssl/smtpd.crt /opt/zimbra/
ssl/ssl/smtpd.key
/opt/zimbra/bin/zmcertinstall: line 47: print: command not found
[zimbra@newmail ~]$
Reply With Quote
  #4 (permalink)  
Old 11-16-2005, 11:36 AM
Zimbra Employee
 
Posts: 2,103
Default bug

Sorry, that one slipped by. It's not finding the cert file you specified.

And the syntax I gave you was wrong:

should be
zmcertinstall mta /opt/zimbra/ssl/ssl/server/smtpd.crt /opt/zimbra/ssl/ssl/ca/ca.key
Reply With Quote
  #5 (permalink)  
Old 11-16-2005, 11:44 AM
Junior Member
 
Posts: 8
Default

Same failure

[root@plain log]# su - zimbra
[zimbra@newmail ~]$ zmcertinstall mta mta /opt/zimbra/ssl/ssl/server/smtpd.crt /
opt/zimbra/ssl/ssl/ca/ca.key
/opt/zimbra/bin/zmcertinstall: line 47: print: command not found
[zimbra@newmail ~]$
Reply With Quote
  #6 (permalink)  
Old 11-16-2005, 11:50 AM
Zimbra Employee
 
Posts: 2,103
Default file not found

Does /opt/zimbra/ssl/ssl/server/smtpd.crt exist? (Are you running M2?)
Reply With Quote
  #7 (permalink)  
Old 11-16-2005, 12:11 PM
Junior Member
 
Posts: 8
Default

I'm running the latest release of the "build it yourself" version downloaded from your site yesterday. Ran install.sh, answered a couple of questions and boom, everything worked.

smtpd.crt does not exist anywhere on the system. I have:

/opt/zimbra/ssl/ssl/server/tomcat.crt
/opt/zimbra/ssl/ssl/server/server.crt
/opt/zimbra/conf/slapd.crt
Reply With Quote
  #8 (permalink)  
Old 11-16-2005, 12:37 PM
Zimbra Employee
 
Posts: 2,103
Default no cert

Well, that's strange - I'll try to duplicate that, but for now:

as root:
cd ~zimbra
mv ssl foo
mkdir ssl
chown zimbra ssl

as zimbra:
zmcreateca
zmcreatecert

find ssl/

Should have:
ssl/
ssl/ssl
ssl/ssl/ca
ssl/ssl/ca/ca.pem
ssl/ssl/ca/ca.srl.old
ssl/ssl/ca/ca.key
ssl/ssl/ca/ca.csr
ssl/ssl/ca/ca.srl
ssl/ssl/zmssl.cnf
ssl/ssl/cert
ssl/ssl/server
ssl/ssl/server/tomcat.crt
ssl/ssl/server/server.csr
ssl/ssl/server/tomcat.csr
ssl/ssl/server/server.key
ssl/ssl/server/server.crt
ssl/ssl/newCA
ssl/ssl/newCA/index.txt
ssl/ssl/newCA/newcerts
ssl/ssl/newCA/newcerts/02.pem
ssl/ssl/newCA/index.txt.old

zmcertinstall mailbox
zmcertinstall mta ssl/ssl/server/server.crt ssl/ssl/server/server.key
Reply With Quote
  #9 (permalink)  
Old 11-16-2005, 01:26 PM
Junior Member
 
Posts: 8
Default

I think that may have fixed it. I'll know for sure in a few minutes.

FYI, /opt/zimbra had root/root ownership and a 755 mask.

I had to change it to root/zimbra (chgrp) and give group write access. I'm wondering if this is why install.sh failed to create this stuff when I built it...
Reply With Quote
  #10 (permalink)  
Old 11-20-2005, 09:01 PM
Junior Member
 
Posts: 8
Default

A related problem (I think..)

I think this happened after changing the hostname from the generic name that the ISP used when building the server. Everything seems to be working ok though.

The key does exist:
[root@plain named]# ls -l /opt/zimbra/conf/smtpd.key
-rw-rw-r-- 1 zimbra zimbra 887 Nov 16 15:21 /opt/zimbra/conf/smtpd.key
[root@plain named]#

Nov 20 22:52:17 plain postfix/smtpd[18752]: warning: cannot get private key from file /opt/zimbra/conf/smtpd.key
Nov 20 22:52:17 plain postfix/smtpd[18752]: warning: TLS library problem: 18752:
error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:x509_cmp.c:389:
Nov 20 22:52:45 plain postfix/smtpd[18752]: warning: 209.190.15.3: hostname mx1.reg4you.com verification failed: Name or service not known
Nov 20 22:54:49 plain postfix/smtpd[19114]: warning: cannot get private key from file /opt/zimbra/conf/smtpd.key
Nov 20 22:54:49 plain postfix/smtpd[19114]: warning: TLS library problem: 19114:
error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch:x509_cmp.c:389:
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.