Menu Close

How to set Comodo Positive SSL in Webmin

Webmin can be forced to SSL Mode, but tipically it have a private generated SSL Certificate and every time you try to navigate to https://yousite.com:10000 you’ve a SSL warning.

If you have a SSL cert for your site, you can use it for Webmin too!

These are steps for enable it:

  1. go to
    /etc/webmin
  2.  rename miniserv.pem with miniserv.pem_OLD
  3.  create new file miniserv.pem and write in as follow:
    -----BEGIN RSA PRIVATE KEY----- 
    (Contents of private key) 
    -----END RSA PRIVATE KEY----- 
    -----BEGIN CERTIFICATE----- 
    (Contents of SSL certificate: your_domain_name.crt) 
    -----END CERTIFICATE-----

    Where private key is tipically www.yoursite.com.key and SSL certificate is www_yoursite_com.crt.

  4.  Open miniserv.conf and add at the end of the file:
    ssl_redirect=1
    extracas=/etc/ssl/www.yoursite.com/PositiveSSLCA2.crt

    where extracas is the path of PositiveSSLCA2.crt file.

  5. now in command line type:
    service webmin restart

    and it should works!

Posted in News, Web Development

Leave a Reply

Your email address will not be published. Required fields are marked *