whats the domain name? I would rather like to see https link, check in browser what ssl cert is in use, in chrome click on address bar where its said not secured or where is padlock this will tell you what ssl cert you are using
Yes. By default it only uses the cert you requested for the virtual server. But if you copy that cert to webmin and usermin, then you might get issues.
Simply go to the virtual server which contains the domain for webpanel and make sure to include that domain (if it isnt already) in the request.
Copy that certificate back to webmin /etc.
If your virtualmin domain is, for example, vps01.indiax.com on port 10000 and the default domain is vps01.indiax.com on port 80 / 443 then you could get a Let’s Encrypt SSL certificate for that domain via Virtualmin | Server Configuration | SSL Certificate. After the certificate has been successfully applied, you should be able to access vps01.indiax.com (on port 443) and see a lock symbol in the address bar of the browser.
The next step is to apply the same certificate on the webmin service (as well as Dovecot, Postfix etc.) and this is done easily via:
At this point you will have the default domain and Webmin / Virtualmin using the same SSL certificate without error.
Pro Tip: when using the same domain name for default domain and Webmin / Virtualmin, uncheck the box for “Mail for domain enabled” under Virtualmin | Edit Virtual Server | Enabled Features to avoid lots of warnings in the mail log.
Unfortunately, my control panel on port 10000 is not the same name as my main domain. I have already done the above step earlier and that is why I’m getting error because there are two different names.
Since your control panel on port 1000 (your hostname) is not the same as the default domain you have used in Virtualmin, you should not have followed the procedure that I have described in my earlier message.
Here is what you should have done and should now do to get Webmin / Virtualmin to show sans error in a browser:
Webmin | Webmin Configuration | SSL Encryption
Generate the Let’s Encrypt Certificate for the hostname (select the appropriate option for “Website root directory for validation file”)
That’s wonderful @anthonyinit2012. If you could mark the answer that I had provided as the solution, it might help others who have similar problems find the information they seek.