[SSL] How to ignore certificate expiration warning?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top