I’ve managed to successfully install and generate a Let’s Encrypt SSL cert, in Virtualmin for virtual server mydomain.com
I want to generate a cert, in Webmin, for the System Hostname of server1.mydomain.com
In Webmin > Webmin > Webmin Configuration > SSL Encryption > Let’s Encrypt I have in the ‘Hostnames for certificate’ field server1.mydomain.com and if I ‘Request Certificate’ I get:
Failed to request certificate : No virtual host matching server1.mydomain.com was found
This seems to imply that I need a Virtual Server set up for server1.mydomain.com, is this correct?
I remember seeing a reference to this somewhere on the net but I can’t remember where.
So, is there a way to generate the cert for the System Hostname without having a virtual server set up? Or is there another route I need to take?
You need to have a server set up for the domain name because the whole system depends on putting a file into the web server for that domain temporarily. That’s how they determine that you actually have control over the web server for that domain.
So yes, you need to have a running web server for a domain name to request a certificate.
This is an old thread, but someone like me might come here searching for an answer to the issue faced by simon1066. I went about doing lot of stuff to no use, until it dawned on me that that was not needed. It’s very simple actually.
You don’t need to https on the system hostname to run webmin as root.
You can do that using the :10000 suffix on any other virtual server on that system that has the LE certificate, and then login with root user instead of virtual server user.
E.g.: https://mydomain.com:10000
I am looking for hours around now to find out how to renew a Let’s Encrypt certificate on my server,domain.com,
If I go to Webmin, Configuration, SSL Encryption, Current Certificate it shows let’s encrypt valid Nov 6, but pressing Just update renewal in the Let’s Encrypt tab it’s not doing anything…no message, nothing happens? why?
What version of Virtualmin are you running, do you have the option for “Months between automatic renewal” - if so, set it to 2 months, and forget about it?
Ah, OK sorry I missed that you wanted to do it for the host. Have a look at the response from SRI above - the fact is, you should never have to use the host, you can login as root from any virtual server that has an ssl certificate in place.