Wrong certificate for Virtualmin (port 10000)

It looks like after an LE cert for one of my Virtualmin servers was updated, the cert for Virtualmin access on port 10000 was changed. I was accessing it using one domain that had an LE cert (can't remember how I copied it there, but it was through the menus). Then, seemingly randomly (I think it was correlated to an automatic LE update), when I logged in I got the HTTPS error that it was the wrong domain name. Looking at the cert, it seems it now belongs to the domain that was automatically LE updated.

How do I change it back? Where is the Virtualmin cert (for port 10000) stored?



Howdy -- is there a Virtual Server within Virtualmin using the SSL certificate you want in Webmin/Virtualmin?

If so, what you could do is go into that Virtual Server, then click Server Configuration -> Manage SSL Certificates, and there click "Copy to Webmin".

Yes there is, and I think that must be how it got there.

But I don't get why it changed. In any case, can you tell me where the Virtualmin cert lives so that maybe I can keep tabs on it?

Nevermind, I see it's in /etc/webmin/miniserv.conf. I'll keep an eye on it after the next LE renewal.

Yes you're correct, in the miniserv.conf file, you'll see the "certfile" and "keyfile" parameters, which point to the SSL certificate that's in use.

Feel free to let us know if you have any additional questions!