Hei, im on a fresh installed ubuntu 18.04 server distro with nginx as webserver and webmin / virtualmin installed to administrate my own additional domains. I use afraid for my dynamic ip and my domains are updated there with ns1 ns2 .. nameservers. Probably all works fine until I add my first virtual server and letsencrypt to that domain that’s used for the first virtual server. My webmin is installed with domain1.com and letsencrypt to secure sessions I spend on webmin so domain1.com and domain1.com:10000 works fine and are ssl crypted (green). If I add my first virtual server to virtualmin and run letsencrypt to secure the domain associated to the first virtual server ( lets name it domain2.com) then my first domain (domain1.com) that’s used to webmin control panel gets broken and I get this error on firefox: Error code: SSL_ERROR_BAD_CERT_DOMAIN. If I open the certificate for domain1.com then I see domain2.com as CN. To make it more strange, domain1.com:10000 works fine with that cert and CN is domain1.com but if I remove port :10000 and use this domain as is without webmin port, my cert shown the cert from first virtual host. Adding domain3.com domain4.com .. works fine all run on letsencrypt, if I remove domain2.com the domain1.com gets the same error but then from virtual host 2 with domain3.com..
I hope someone understands what I wrote and can help me out please.
Ubuntu 18.04 / ngingx 1.14 latest webmin (root/home/swap) all domains are isp reg. domains. Error code: SSL_ERROR_BAD_CERT_DOMAIN