[Update] - I attach also full config files, for service, and for client (outside of here, not to flood the topic)
I'm having situation pretty much identical to the one outlined in this question, however my question is somewhat different.
- I'm using NetTcpBinding with security set to TransportWithMessageCredential
- I'm using Password/Username credentials backed up by ASP.NET provider
- My service is self hosted in Windows Service
- I do have in my endpoint behavior specified authentication revocationMode="NoCheck"
It is required that the service provides a certificate to authenticate itself to clients. That's OK, I just do:
<serviceCertificate findValue="***"
storeLocation="CurrentUser"
storeName="My"
x509FindType="FindByThumbprint"/>
Now, I somewhat imagined that now the client would end up having
<identity>
<certificate encodedValue="encoded certificate"/>
</identity>
And it will be able to verify service's credentials without having that certificate installed in the store on client machine.
I was surprised to learn that although I set the service credentials to certificate, WSDL exposes
<Identity>
<Dns>Foo</Dns>
</Identity>
Again, on service I can set Identity to CertificateReference an