On Aug 22, 2011, at 1:00 PM, Steve Sharrock wrote:
> I have a pretty straight-forward web service call that works fine on any of 
> our non-secure sites (http://), but when I use an Url string with https:// 
> pointing to a secure site, I get the following exception...
>  
> "Error writing request: The authentication or decryption has failed."
>  
> And, of course the same code works fine from within a Desktop or Web 
> application.

Desktop/Web app running on .NET or Mono?

I would guess that the issue is due to SSL certificates, and (unless you're 
using a commercial cert accepted by IE/Firefox/Chrome/etc. w/o warning) this 
cert will be denied by Mono.

If this is the case, the fix is to register the certificate:

        
http://www.mono-project.com/FAQ:_Security#Secure_Socket_Layer_.28SSL.29_.2F_Transport_Layer_Security_.28TLS.29

Of the three answers provided at the above URL, certmgr and mozroots can't be 
used, so you would need to implement the System.Net.ICertificatePolicy 
interface.

Thanks,
 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to