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