Circle of life for SSL, please help


I am trying to install self signed certificates for an existing domain on virtualmin.

When I try “enable SSL Certificate” in Virtualmin using “edit virtual server”, then under “enabled features”, i check “Apache SSL website enabled?”, i get the following result on “save virtual server”

Changing IP address of virtual website …
… done

Adding new SSL virtual website …
… certificate and key do not match : Certificate and private key do not match

Updating Webmin user …
… done

Updating Webmin user …
… done

Saving server details …
… done

Applying web server configuration …
… done

Re-loading Webmin …
… done

So I figured I will generate certificates using the command line. On the command line this is what i get:

Command line example (actual values replaced)

virtualmin generate-cert --domain mydomain --self --size 2048 --days 365 --cn mydomain–c myCountry --st myState --l myCity --o myORg --ou myUnit --email --alt wwwmydomain

The result:
Virtual server mydomain does not have SSL enabled

Circle of life :slight_smile:

How do I fix this?

Thanks a lot, in advance


webmin version: 1.941, Virtualmin version: 6.08


What distro this issue is happening on? What is the output of:

openssl version


This is on OpenSSL 1.0.2k-fips 26 Jan 2017



Do you have anything unusual set on Virtualmin Configuration/SSL Settings?

If all looks fine there, I would simply try with re-installing openssl package. I don’t have such issue happening on my CentOS 7 box.

As the work around would be to generate certs manually, put them to the website root (with the names mentioned in the config above), and then enable SSL feature, and Virtualmin will use already existing certs, without trying to generate the new ones.

Note: It’s better just to request free, legit Let’s Encrypt cert.