[SSL] How to ignore certificate expiration warning?

  • Thread starter Thread starter trant
  • Start date Start date
T

trant

I have code which connects to a web site via SSL which now breaks because the
certificate expired.

How do I ignore this warning so my code can continue to connect?

Basically, I do:

WebClient client = new WebClient();
string resp = client.DownloadString(<URL>);

and right there I get the error.
 
Back
Top