How to find a simple way to install a SSL Certificate for Qmail?

Please follow these instructions to install your SSL certificate on Qmail.

1. Once you received your SSL certificate by e-mail, please copy and paste it into a text file (with Notepad or Wordpad) and save the file with the .crt extension. (Include the tags -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----).

2. Get your intermediate certificate. Create a combined .pem certificate file (or Bundle) with:

- The Private Key
- The Primary Certificate
- The Intermediate Certificate
- The Root 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: SSLCertificate.crt) (from step 1)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Intermediate certificate: IntermediateCert.crt) (from step 2)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Root certificate: TrustedRoot.crt)
-----END CERTIFICATE-----

4. Move this file to your /var/qmail/control/ folder.

5. 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.

6. Restart the Qmail server.