How to pass a certificate to WSTrust to get Saml Token
问题 Here is an example of getting tokem using WSTrustChannelFactory. From here. var stsBinding = new WS2007HttpBinding(); stsBinding.Security.Mode = SecurityMode.TransportWithMessageCredential; stsBinding.Security.Message.EstablishSecurityContext = false; stsBinding.Security.Message.NegotiateServiceCredential = false; stsBinding.Security.Message.ClientCredentialType = MessageCredentialType.Certificate; WSTrustChannelFactory trustChannelFactory = new WSTrustChannelFactory( stsBinding , new