AKB
AKB

Reputation: 53

How to avoid SSL Error on browser while accessing SSL enabled service on IIS

I have deployed a WCF service on IIS and enabled SSL for it. I created a self signed certificate on the server and exported into a pfx file. I also brought the pfx to my machine and installed it under Trusted Root Certification Authorities.

When I hit the service URL, I get following warning which I need to avoid:

You attempted to reach 172.150.170.226, but instead you actually reached a server identifying itself as something.something.local.

Please suggest. Thank You.

Upvotes: 0

Views: 288

Answers (2)

AKB
AKB

Reputation: 53

The problem was I was unable to name the self signed certificate according to my preference.I was accessing the service through the ip address of the server , so i needed to set the common name of the certificate as that ip.

I was able to do this using SelfSSL.exe which comes with IIS 6.0 Resource kit.Using this tool from command line I was able to name the certificate as i like.

Upvotes: 0

Brandon Spilove
Brandon Spilove

Reputation: 1569

The host name on the certificate has to match the host name in the URL you are using. So you need to be hitting something.something.local. If that doesn't work, then maybe it needs to be set up in your hosts file so that the IP resolution works.

Upvotes: 1

Related Questions