Since switching all my webmin installs to SSL, I'm getting "Certificate is for domain1.com, not domain2.com".
This is caused by validate_ssl_connection only checking Common Name, and not also Subject Alternative Names. The Subject Alternative Names field should be correctly checked (DNS & IP).
Thanks for pointing this out - a fix has been submitted for inclusion in the next Webmin release.