I think I managed it without the help of a tool!
This example is for Debian 3.1 and worked for me, it is neccesary to create your own Certificate Authority (CA) and sign it yourself or otherwise purchase a "real" X.509 certificate signed by a Certificate Authority (CA).
Please adjust paths if they are different on your system!
Code:
////////////////////////////////////////////////////
//Setup a TLS-enabled POP3/IMAP server
//We need to make crypto keys and certificates.
//Without them, TLS/SSL will not work.
////////////////////////////////////////////////////
//Create the key:
openssl genrsa -out ipop3d.pem 1024
chmod 0400 ipop3d.pem
cp -v ipop3d.pem /etc/ssl/keys
////////////////////////////////////////////////////
//Creating The CSR:
openssl req -new -key ipop3d.pem -out ipop3d.csr
mv ipop3d.csr /etc/ssl/csrs
////////////////////////////////////////////////////
//Signing the CSR:
openssl x509 -req -days 3650 -sha1 -CAcreateserial -in /etc/ssl/csrs/ipop3d.csr -CA /etc/ssl/certs/ca.domain.com.crt -CAkey /etc/ssl/keys/ca.domain.com.key -out ipop3d-cert.pem
chmod 0400 ipop3*
cat ipop3d-cert.pem >> ipop3d.pem
cp -v ipop3d.pem /etc/ssl/certs
cp -v ipop3d.pem /etc/ssl/certs/imapd.pem
Regards,
TheMike
Recent comments
23 hours 43 min ago
1 day 9 hours ago
1 day 10 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 12 hours ago