I\'m trying go get WCF server and client mutually authenticate each other using SSL certificates on transport level using BasicHttpBinding. Here\'s how the server is getting
If you use standard generated proxy class you can to set transport client credential type to Certificate
in App.Config
:
<binding name="SpoDataServiceSoap">
<security mode="Transport">
<transport clientCredentialType="Certificate"></transport>
</security>
</binding>
C#
var client = new MyServiceSoapClient()
X509Certificate2 cert = CertificateHelper.GetClientCertificate();
client.ClientCredentials.ClientCertificate.Certificate = cert;
Try adding this in the client just after setting Security.Mode
:
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;