Add a certificate validation handler. Returning true
will allow ignoring the validation error:
ServicePointManager
.ServerCertificateValidationCallback +=
(sender, cert, chain, sslPolicyErrors) => true;
More Related Contents:
- Could not establish trust relationship for SSL/TLS secure channel — SOAP
- Which TLS version was negotiated?
- How can I send emails through SSL SMTP with the .NET Framework?
- Associate a private key with the X509Certificate2 class in .net
- Enable SSL in Visual Studio
- Check ssl protocol, cipher & other properties in an asp.net mvc 4 application
- How to set read permission on the private key file of X.509 certificate from .NET
- Is it safe to test the X509Certificate.Thumbprint property when you know an invalid certificate is safe?
- Can I reuse HttpWebRequest without disconnecting from the server?
- Is TLS 1.1 and TLS 1.2 enabled by default for .NET 4.5 and .NET 4.5.1?
- Can’t specify the ‘async’ modifier on the ‘Main’ method of a console app
- Why should I prefer single ‘await Task.WhenAll’ over multiple awaits?
- Does C# optimize the concatenation of string literals?
- How to get client date and time in ASP.NET?
- How to compare DateTime in C#?
- Drag and drop to Desktop / Explorer
- How do I truncate a .NET string?
- Path.Combine absolute with relative path strings
- InvalidOperationException – object is currently in use elsewhere
- C# Version Of SQL LIKE
- Cannot implicitly convert type ‘System.Collections.Generic.IEnumerable’ to ‘System.Collections.Generic.List
- Using C# to search a CSV file and pull the value in the column next to it
- Does C# have a way of giving me an immutable Dictionary?
- Reference a .NET Core Library in a .NET 4.6 project
- Dependency Injection wcf
- Save Settings in VB.Net or C#
- Mocking generic methods in Moq without specifying T
- Order of events ‘Form.Load’, ‘Form.Shown’ and ‘Form.Activated’ in Windows Forms
- Why does “\n” give a new line on Windows?
- PostMessage WM_KEYDOWN send multiply keys?