“For the sake of anyone checking this thread, be sure that your hostname does NOT match a site you’re hosting on the server or you’ll get this error. I changed the hostname to something else and now the SSL renews as expected.”
Now, it is stupid, but i do have my hostname as a virtual server as well. It’s not even a website, I don’t know/remember why it’s there. Anyway, it’s causing problems with let’s encrypt, so my question now is, how do I get rid of the virtual server and leave alone the hostname? Is that possible at all?
If you didn’t create it, it’s probably the hostname virtual server Virtualmin creates during install so it can get a certificate so you don’t get browser warnings. You don’t need to do anything with that one.
The problem with having a Virtual Server with the same name as the server is mostly with email, and shouldn’t have anything to do with getting Let’s Encrypt certs for other names on the system. In other words, if you aren’t sending and receiving mail for that name on this server, it probably doesn’t matter.
So, what is the actual error or problem we are trying to solve here? Step back from what the solution seems like to what the problem is?
We have a special option named “Setup SSL certificate from provider for hostname” for this in “System Settings ⇾ Virtualmin Configuration: SSL settings” page.
Be aware, that will create an SSL certificate for the hostname and automatically update it in the background. It will also update automatically if the hostname is renamed in the future upon config check.
“Don’t make zombies. Searching for similar problems is great! But, reviving old posts with new questions is bad. It forces someone to read the whole thread to understand context, and often includes misleading context.”
That old thread has a bunch of comments and may or may not be exactly the problem you have.