Thanks for your assistance folks, I got Cyrus IMAP working with Starcom's signed certs.
Here's what the following filenames are:
ssl.key The private key file.
ssl.crt The signed public certificate .
ca.crt StartCom's public certificate
ssl.pem the ssl.key and ssl.crt files concatenated together (for Postfix and Cyrus)
Here's the steps I took to strip the passphrase, concatenate the appropriate files, and change the permissions for Cyrus and Postfix to be able to read the certs:
Code:
$ cp ssl.key ssl.key.org
$ openssl rsa -in ssl.key.org -out ssl.key
$ cp ssl.key ssl.pem
$ cat ssl.crt >> ssl.pem
$ chown root.mail ssl.pem
$ chmod 440 ssl.pem
Part of the reason Cyrus wasn't working initially was because the combined certificate file wasn't readable by the Cyrus user. Hence the extra permissions modifications in the last 2 steps.
As an aside, newer Cyrus implementations allow you to specify separate files for the certificate and key file (though both still need to be readable by the mail user!), eliminating the step of concatenating the key and certificate file. The relevant imapd.conf paramters are (with examples):
Code:
tls_cert_file: /etc/ssl/ssl.crt
tls_key_file: /etc/ssl/ssl.key
tls_ca_file: /etc/ssl/ca.crt
Postfix works in a similar fashion, but For only smtp client to server connections (as opposed to server to server connections) you set the following options in main.cf:
Code:
smtp_use_tls = yes
smtp_tls_cert_file = /etc/ssl/ssl.pem
smtp_tls_key_file = $smtp_tls_cert_file
smtp_tls_CAfile = /etc/ssl/ca.crt
smtp_tls_note_starttls_offer = yes
The following URL's were instrumental in helping me get this going, and much more complete documentation can be found here, esp. WRT setting up master.cf.
http://www.homeport.org/~adam/starttls.html
http://www.aet.tu-cottbus.de/personen/jaenicke/postfix_tls/doc/conf.html