Invalid server certificate

E

Eric Duran

Hi,

Does anyone know how to instruct HttpWebRequest object to ignore an
invalid server certificate error?
When calling the GetResponse() method, I got a WebException exception
and the Status property of this exception says it is "TrustFailure" one. I
checked the WebExceptionStatus enumeration and the description of this
"TrustFailure" status is: "A server certificate could not be validated.".

Any pointers, ideas about how to tell HttpWebRequest not to throw an
exception because the server SSL certificate is invalid? (I'm trying to
reach a site for development purposes, thus, they have an self-created SSL
certificate)


Thanks,

Eric
 

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