Friday 7 July 2017

2 way SSL WCF service call from an console application # issue "System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel."


Emailer.WSSoapClient obj = new    Emailer.WSSoapClient();

var clientCertificate = new X509Certificate2(AppDomain.CurrentDomain.BaseDirectory + "certname", "Fr@123");

 obj.ClientCredentials.ClientCertificate.Certificate = clientCertificate;

No comments:

Post a Comment