How to Install SSL Certificate in Qmail
Before starting the installation process, please make sure you’ve created your CSR and also received your SSL Certificate files from the trusted Certificate authorities-
Once you’ve done these both task, let’s jump on the installation process –
Create a combined .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:
- The private key
- The primary certificate
- The intermediate certificate
- The root certificate
Make sure that you include the beginning and end tags on each SSL Certificate. The result should look like this:
—–BEGIN RSA PRIVATE KEY—–
(Your Private Key: your_domain_name.key)
—–END RSA PRIVATE KEY—–
—–BEGIN CERTIFICATE—–
(Your Primary SSL certificate: your_domain_name.crt)
—–END CERTIFICATE—–
—–BEGIN CERTIFICATE—–
(Your Intermediate certificate: DigiCertCA.crt)
—–END CERTIFICATE—–
—–BEGIN CERTIFICATE—–
(Your Root certificate: TrustedRoot.crt)
—–END CERTIFICATE—–
Save the combined file as comparepack.pem
Move this file to your /var/qmail/control/ folder
Enable the ssl certificate for use with qmail either by renaming the file to that of the certificate that is already in use on that server, or by modifying the server configuration file to point to the newly created certificate.
Restart the Qmail server.