How to install SSL certificate in Webmin

It is a little bit tricky when I install SSL certificate in Webmin. Here is a how-to of installation of it.

Now Webmin is version 1.710, on CentOS 6.5.

The SSL certificate is issued by Comodo.

The very important part is the key and certificates themselves. I have all these files from gotssl.com. But I know know how to combin them or which one is the correct file.

So, make two files first.

1) Combine server private key and certificate into one file.

new_miniserv.pem

</p>
<p>&lt;code&gt;-----BEGIN PRIVATE KEY-----<br />
(Contents of private key)<br />
-----END PRIVATE KEY-----<br />
-----BEGIN CERTIFICATE-----<br />
(Contents of SSL certificate: your_domain_name.crt)<br />
-----END CERTIFICATE----- &lt;/code&gt;</p>
<p>

your_domain_name.sha256.ca-bundle

It is for chained certificates.

</p>
<p>(contents of COMODORSADomainValidationSecureServerCA.crt)</p>
<p>(contents of COMODORSAAddTrustCA.crt)</p>
<p>

Save both files into /etc/webmin/

2) Sign in webmin with http protocol.

Goto, Webmin > Webmin Configuration > SSL Encryption

Filling the fields of Private Key and Additional certificate files.

And also choose Yes on “Enable SSL if available? “.

Click Save and it works right away.

webmin-ssl-config

Then when you need to access webmin. The URL is https://your_domain_name.com:10000

No more warning of self-signed certificate.