Manual accept/refuse of SSL certificate in .Net/C#

  • Thread starter Thread starter KimA
  • Start date Start date
K

KimA

Hello.

I'm trying to create an application which should connect to a web server via
SSL. This server is supposed to have a Thawte (or equivalent) certificate.
In the rare event that someone has deleted Thawte from their list of trusted
CA:s I would like to present him with the option to review and accept (or deny)
the certificate, as you would in IExplorer.

I really need some pointers as to how this can be done. At the moment I am
using the UploadData method which only gives an exception saying:
"the underlying connection was closed: Could not establish trust
relationship with remote server."

I'd expect there to be some high level method to call to do this - since it
seems like something alot of people could use, but I have not been able to
find such a method.

/Kim, Sweden
 
Back
Top