To install a custom SSL certificate for the Courier-IMAP (IMAP/POP3) mail server on a Plesk server, follow these steps:
Note: IMAP and POP3 each require separate certificate files, but both files can contain same certificate.
For example for RedHat or Fedora operating systems, you need to back up the following default SSL certificate files:
/usr/share/courier-imap/imapd.pem
- the certificate enables secure data transfers through IMAP protocol./usr/share/courier-imap/pop3d.pem
- the certificate enables secure data transfers through POP3 protocol.Note: For other operating systems, the default certificate file locations may be different.
For example, the content to be copied from a custom SSL certificate and pasted in lieu of a default certificate file body should look like this:
-----BEGIN CERTIFICATE-----
MIIB8TCCAZsCBEUpHKkwDQYJKoZIhvcNAQEEBQAwgYExCzAJBgNVBAYTAlJPMQww
............
............
eNpAIeF34UctLcHkZJGIK6b9Gktm
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDv6i/mxtS2B2PjShArtOAmdRoEcCWa/LH1GcrbW14zdbmIqrxb
..........
..........
faXRHcG37TkvglUZ3wgy6eKuyrDi5gkwV8WAuaoNct5j5w==
-----END RSA PRIVATE KEY-----