SSL certificate warning when accessing site through IP address

1.9k Views Asked by At

I have set up my ssl certificate and it works fine when I go to the site using its domain name but some of my clients who access the site were once given the IP address and log in that way. If they go to the site using the domain name everything works fine but if they use the IP address it gives them a warning that the certificate is meant for a different site. I can only assume that this is due to the fact that the certificate is registered to the domain (a wildcard domain) and not the specific IP address. I am using windows server 2003 (stuck with a 32 bit app) and I have tried to configure IIRF (to redirect to the domain before it loads the cert) to no avail. Let me know if you think I'm on the right track or if there is another way to fix this cert warning.

Thank you in advance.

1

There are 1 best solutions below

0
On

The only way to fix a certificate warning is to have the correct certificate for this site the client accesses. Any kind of redirects have only effect after the certificate was validated and trying to fiddle with DNS settings will not help either because the browser will check against the hostname as shown in the URL.

This means the only options are either to get certificates for all the IP addresses the client might access by IP or to teach the client to access the site by the hostname for which you have a valid certificate.