SSL Mixed Issue

Hello everyone,

I recently migrated a virtualmin server (one site) to another server. The site on existing server was working perfectly with SSL on the website, email, virtualmin and usermin panels.

On the new server, the SSL certificate is working fine on email, virtualmin (10000) and usermin (20000) but it is not working on my website ( The certificate is being shown as “self signed” instead of the purchased certificate.

Thanks in advance for your support.


Hi Everyone,

I am still having the same issue. I deleted the entire server, then installed fresh CentOS, fresh Virtualmin, then just created a virtual server also called “”.

Then did CSR request, got the new certificates etc from commodo. Everything works fine for webmin, mails etc but website still shows invalid certificate. The entire public_html folder has single index.html file.

The only change between old server and new server is that:

old server hostname = … virtual server =

new server hostname = … virtual server =

Any help would be appreciated.


Update: Problem fixed

One other difference in the new server is that it was CentOS 7. I did a scan of http config files using following command:

grep -i -r “SSLCertificateFile” /etc/httpd/

It showed that the following configuration:

/etc/httpd/conf.d/ssl.conf:# Point SSLCertificateFile at a PEM encoded certificate

/etc/httpd/conf.d/ssl.conf:SSLCertificateFile /etc/pki/tls/certs/localhost.crt

/etc/httpd/conf.d/ssl.conf:# the referenced file can be the same as SSLCertificateFile

I figured out that it was using the new central certificate folder of CentOS at /etc/pki/tls/

I finally edited the /etc/httpd/conf.d/ssl.conf and changed 3 fields to make it work:

SSLCertificateFile /etc/pki/tls/certs/localhost.crt -> SSLCertificateFile /home/abc/ssl.cert

SSLCertificateKeyFile /etc/pki/tls/private/localhost.key -> SSLCertificateFile /home/abc/ssl.key

SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt -> SSLCACertificateFile /home/abc/

I guess virtualmin guys need to update the software to accommodate the new structure of CentOS 7.