Bug 1162 - Error writing request: The authentication or decryption has failed. when calling HTTPS Web Service
Summary: Error writing request: The authentication or decryption has failed. when call...
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 1.0
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-30 12:15 UTC by Chris Hardy [MSFT]
Modified: 2011-11-04 13:07 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Xoom security warning (94.88 KB, image/png)
2011-11-04 13:06 UTC, Jonathan Pryor
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Chris Hardy [MSFT] 2011-09-30 12:15:34 UTC
Created attachment 541 [details]
Android Project Repo

Hitting this error when accessing a HTTPS webservice on Mono for Android. This works fine on MonoTouch but fails on Mono for Android.

Manually setting ServerCertificateValidationCallback resolves this issue but should be handled by default.

System.Net.ServicePointManager.ServerCertificateValidationCallback += (s, c, ch, ssl) => true;

Attached a repo project: clean out bin/obj first.
Comment 1 Jonathan Pryor 2011-11-04 13:06:29 UTC
I don't think this is a bug with Mono for Android; If I go to the following url within Browser on my Xoom:

    https://demo.document-safe.com/service/coreservicesmanager.svc

I get an error message:

    Security warning
    There are problems with the security
    certificate for this site.
Comment 2 Jonathan Pryor 2011-11-04 13:06:55 UTC
Created attachment 824 [details]
Xoom security warning
Comment 3 Jonathan Pryor 2011-11-04 13:07:38 UTC
Invalid because loading an https site should fail when the host platform reports an error.