WCF: Is there a way to use server certificate making NTLM mutual a

K

Keesoo

IN our workgroup intranet environment,
- We want to use NetTcpBinding for transport security.
- We want clients authenticated by NTLM (i.e.
NetTcpBinding.Security.Transport.ClientCredentialType =
TcpClientCredentialType.Windows)

Because NTLM doesn't support mutual auth (server is not authenticated in
this case), is there a way to configure NetTcpBinding so server auth is using
server's certificate (trusted by all clients) and client auth is using NTLM?
Any suggestions are highly appreciated.

The following doesn't work - cert is not used

NetTcpBinding tcpBinding = new NetTcpBinding ();
tcpBinding.Security.Mode = SecurityMode.Transport;
tcpBinding.Security.Transport.ClientCredentialType =
TcpClientCredentialType.Windows;

serviceHost.Credentials.ServiceCertificate.SetCertificate (
StoreLocation.LocalMachine,
StoreName.My,
X509FindType.FindByThumbprint,
machineCert.Thumbprint
);

serviceHost.AddServiceEndpoint (
typeof ( IContract),
tcpBinding,
tcpUrl);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top