Re: [Imap-use] Howto use certificate tree
David B Funk <[email protected]> Tue, 13 Mar 2012 20:17:33 -0500 (CDT)
| Newsgroups | gmane.mail.imap.uw.c-client |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 13 Mar 2012, Heiko L. wrote: > Hallo > > > Howto copy cert into imapd.pem that works SSL with uw-imap-2007f? > details s. following tests. > > > regards Heiko > --------------------------------------------------------------- > - test5 > rm imapd.pem > cat /tmp/deutsche-telekom-root-ca-2.pem>> imapd.pem > cat /tmp/cacert_global_root_ca.pem >> imapd.pem > cat ~/server.key >> imapd.pem > cat cert-mydn.pem >> imapd.pem > > result: > SSL negotiation failed > > --------------------------------------------------------------- > - test6 > rm imapd.pem > cat ~/server.key >> imapd.pem > cat cert-mydn.pem >> imapd.pem > cat /tmp/cacert_global_root_ca.pem >> imapd.pem > cat /tmp/deutsche-telekom-root-ca-2.pem>> imapd.pem > > result: > unable to get local issuer certificate (details) > For what it's worth, here's what we're using for our imapd certifcate files: 1) host certificate 2) host private key (unencrypted) 3) intermediate CA certicate 4) Global-Root-CA certificate It looks like your test6 is almost this way. Put them in the /etc/ssl/certs directory (or where ever the OpenSSL certs dir is for your distro). Be sure to protect them mode 0400 owned by root, those private keys need to be unencrypted. I don't know if it's necessary, but I also put the global-root-CA & intermediate-CA certs in seperate files in the /etc/ssl/certs directory and ran the "c_rehash" program to build the fingerprint links. Note that if your server has more than one IP-address/hostname, then you'll need to append the IP address to the name to indicate which cert file to use for a given connection. If your server support both IPv4 & IPv6 you'll need both forms of the addresses in the name suffix.