Submitted by creeble on Fri, 07/07/2017 - 11:47 Pro Licensee
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?
Status:
Active
Comments
Submitted by andreychek on Fri, 07/07/2017 - 13:10 Comment #1
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".
Submitted by creeble on Fri, 07/07/2017 - 14:11 Pro Licensee Comment #2
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?
Submitted by creeble on Fri, 07/07/2017 - 17:11 Pro Licensee Comment #3
Nevermind, I see it's in /etc/webmin/miniserv.conf. I'll keep an eye on it after the next LE renewal.
Submitted by andreychek on Fri, 07/07/2017 - 17:15 Comment #4
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!