Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

AspNet Core ServicePointManager.ServerCertificateValidationCallback

$
0
0

Hello Guys, 

I'm trying using ServicePointManager.ServerCertificateValidationCallback at NET CORE for call webservice in soap to bypass invalid certificated.

How can I do it?

I'll try this but haven't work.

EWSV0005_SeguradoInterfaceClient client = new EWSV0005_SeguradoInterfaceClient(result, new EndpointAddress(adddress));
client.ClientCredentials.UserName.UserName = "usr_soa_ns";
client.ClientCredentials.UserName.Password = "155465";
client.ClientCredentials.ServiceCertificate.SslCertificateAuthentication =
new X509ServiceCertificateAuthentication()
{
CertificateValidationMode = X509CertificateValidationMode.None,
RevocationMode = X509RevocationMode.NoCheck

};

Anyony can I help me?

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>