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.
<p><code>-----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----- </code></p>
It is for chained certificates.
<p>(contents of COMODORSADomainValidationSecureServerCA.crt)</p>
<p>(contents of COMODORSAAddTrustCA.crt)</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.
Then when you need to access webmin. The URL is https://your_domain_name.com:10000
No more warning of self-signed certificate.