Reputation: 350
In my wp8 app,
Now,I encounter a problem:
before the https connection established successfully,it will be running the Online Certificate Status Protocol (OCSP)
OCSP needs to access to CA like veriSign to verify the server certificate status
but I have no internet access at this moment.
So,my app return a Webexception whose description is "The remote server returned an error: NotFound".I think it is because of the failure of OCSP.
Based on above,I want to find a solution to sovle this:
Hope your advice,Thanks!
Upvotes: 0
Views: 1894
Reputation: 35870
The way you'd do that on .NET is to set the ServicePointManager.ServerCertificateValidationCallback
delegate and perform the logic you want to perform. But, unfortunately that is not yet available on Windows Phone.
There are various uservoice suggestions related to this, for example:
They don't apply to you directly, but if they end up gaining access to ServicePointManager then you'll be able to do what you want to do.
Upvotes: 1