I am using dovecot (1) and trying to get my StartSSL certificate running.

ssl_key_file points to my private key

I tried pointing ssl_cert_file to my public key, with and without using the class1 certificate from http://www.startssl.com/certs/sub.class1.server.ca.pem as ssl_ca_file aswell as combing them with cat publickey sub.class1.server.ca.pem > chained

My mail client keeps telling me the certificate has no issuer, but doing openssl x509 on my public certificate tells me it is C=IL, O=StartCom Ltd., OU=Secure Digital Certificate Signing, CN=StartCom Class 1 Primary Intermediate Server CA

My option for the CSR were: openssl req -new -newkey rsa:4096 -nodes

Dovecot's log doesn't mention any problems.

EDIT: Doesn't seem to be a problem with dovecot. I am having the same problem with postfix. openssl verify gives me the same error.

link|improve this question
feedback

1 Answer

What error message does the 'openssl verify' return?

It may be the case the applications don't trust the Cert Issuer and need the list of trusted certs.

Try downloading this file http://www.startssl.com/certs/ca-bundle.pem and running 'openssl verify -CAfile ca-bundle.pem mycert.pem' where mycert.pem is your cert.

For eg : % openssl verify -CAfile ca-bundle.pem sub.class1.server.ca.pem sub.class1.server.ca.pem: OK

link|improve this answer
Okay, that works. How can I tell dovecot about this. On the wiki and various guides I read about chaining. And in fact I have been using a CaCert.org earlier and chaining (cat'ing them together) wasn't a problem, but somehow this doesn't seem to work or I simply miss something. I read about the differences between dovecot 1 and 2, but it didn't work whatever way I tried. – knoim May 16 '11 at 10:32
I can't get dovecot to use the CAFile. I am using debian. There are StartCom ca file in /etc/ssl/certs. I also tried to chain them and while they are detected I still receive: "verify error:num=19:self signed certificate in certificate chain" – knoim Jun 28 '11 at 10:31
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.