The only way to remove the error message when accessing the site at https://mydomain.com is to place the base domain (mydomain.com) as the subject’s alternative name in the template. Several certificate providers will add this for free (including DigiCert and Comodo), but you will need to reissue your certificate.
source share