
Explanation/Reference:
Explanation:
Target 1: ClientCredentialType
Target 2: MessageCredentialType.Certificate
Set the ClientCredential property to an appropriate value. The following code sets the property to Certificate.
WSHttpBinding b = new WSHttpBinding();
b.Security.Mode = SecurityMode.Message;
b.Security.Message.ClientCredentialType = MessageCredentialType.Certificate; Target 3: SetCertificate On the client class, set the ClientCredentials property of the ClientBase<TChannel> class to an appropriate value.
Example: // Set the certificate for the client.
cc.ClientCredentials.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine,
StoreName.My,
X509FindType.FindBySubjectName,
"cohowinery.com");
References: https://docs.microsoft.com/en-us/dotnet/framework/wcf/how-to-set-the-security-mode
https://docs.microsoft.com/en-us/dotnet/framework/wcf/how-to-specify-client-credential-values