To install a custom SSL certificate for Qmail on a Plesk server, follow these steps:
.pem
certificate file.To create a combined .pem
certificate file, start your favorite text editor and paste the contents of each certificate file and the private key in the file in the following order:
Make sure that you include the begin and end tags of the key and each certificate including the dash lines. The resulting text should look like this:
-----BEGIN RSA PRIVATE KEY-----
..........
..........
(Your Private Key here)
..........
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----..........
(Your Primary SSL certificate here)
..........
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
..........
(Your Intermediate certificate here)
..........
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
..........
(Your Root certificate here)
..........
-----END CERTIFICATE-----
plesk.pem
.plesk.pem
.For example for RedHat or Fedora operating systems, the SSL certificate file that you need to back up is var/qmail/control/servercert.pem
.
Note: For other operating systems, the default certificate file location may be different.
var/qmail/control/servercert.pem
by using your favorite text editor and replace the contents of the file with the content of the combined certificate file plesk.pem
.