X.509 certificates on WCF is not working for netTcpBinding
My client application can easily access service
hear is my App.config for Tcp/ip service
xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
system.web>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NewBinding0">
<security>
<message clientCredentialType="Certificate" />
security>
binding >
netTcpBinding>
bindings>
<services>
<service behaviorConfiguration="ServiceSqlToAccess.Service1Behavior"
name="ServiceSqlToAccess.clsInsertData">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="ServiceSqlToAccess.InterFace1">
<identity>
<dns value="localhost" />
<certificateReference storeName="Root" storeLocation="CurrentUser" findValue="WCFServer" x509FindType="FindBySubjectName" />
identity>
endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8731/TransferToAccess/" />
baseAddresses>
host>
service>
services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceSqlToAccess.Service1Behavior">
<serviceCredentials>
<clientCertificate>
<authentication certificateValidationMode="PeerTrust" />
clientCertificate>
<serviceCertificate findValue="WCFServer" storeLocation="CurrentUser" storeName="My" x509FindType="FindBySubjectName" />
serviceCredentials>
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
behavior>
serviceBehaviors>
behaviors>
system.serviceModel>
configuration>
Loading
raj kumarPosted Jun 7, 2016, 9:57 AM
Lalit MPosted Feb 18, 2010, 2:03 AM
http://blogs.msdn.com/pedram/archive/2007/10/05/wcf-authentication-custom-username-and-password-validator.aspx
Lalit MPosted Feb 18, 2010, 2:03 AM
http://blogs.msdn.com/pedram/archive/2007/10/05/wcf-authentication-custom-username-and-password-validator.aspx