Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Confused regarding WCF identity dns value

I'm confused about what the identity element on a client endpoint really does. I've understood that a identity dns value like is supposed to tell WCF to assert that the service's certificate is issued to myserver.local. And that this should allow me to point the endpoint address to https://localhost/MyService.svc instead of https://myserver.local/MyService.svc.

But this fails I don't understand why. I have myserver.local pointing to 127.0.0.1 in my host file and I have self-created certificate issued to myserver.local. It works fine with myserver.local but when I change the endpoint address to localhost it stops working because it "can't establish a SSL/TLS trust".

Can anyone explain why?

Thanks

like image 458
LinusK Avatar asked Sep 01 '11 12:09

LinusK


People also ask

What is DNS identity?

The domain name system (DNS) makes it possible for browsers, apps, and servers to load internet resources. Think of it like a phonebook—except instead of associating a person's name with a phone number, it maps a domain name (e.g., okta.com) to an internet protocol (IP) address that can be understood by systems.

What is endpoint identity?

A service's endpoint identity is a value generated from the service Web Services Description Language (WSDL). This value, propagated to any client, is used to authenticate the service.


1 Answers

If you want to know what the WCF Identity DNS value is for, and what to put in it, see this question:

WCF client endpoint identity - configuration question

It helped me to understand what it's for.

like image 88
Roet Avatar answered Sep 21 '22 17:09

Roet