The “general answer” is:
“Security Error: Domain Name Mismatch” occurs if you make a secure connection to a server whose domain does not match the domain name in the certificate it uses. This is to inform you that the site you are trying to connect to may not be the site you wanted. It may also occur when a site changes their domain name but doesn’t buy a certificate for the new domain."
It sounds like what you need to do to “fix” it is to straighten out your certificate. (make sure the certificate is for the domain in question).