[Mono-dev] System.IO.IOException: The authentication or decryption has failed.

Eddy Zavaleta eddy at mictlanix.org
Tue May 21 07:56:10 UTC 2013


Hi,

I'm trying to use a webservice using client certificate for authentication.
I created the C# proxies using svcutil.exe on windows and everything works
(MS .NET) but when I tested on Mono 3.0.10 / Mac OS X 10.8.3 I get this
error.

I've created a test for this and put it at
https://github.com/ezavaleta/web-request-test

I tried to made the test as simple as possible using HttpWebRequest and
posting xml data from a file to simulate the soap request, this also works
on MS .NET but not on mono.

I've discoverd that the POST request eventually works after some retries if
a GET request is made first which always works.

StackTrace:
System.Net.WebException: Error getting response stream (ReadDone1):
ReceiveFailure ---> System.IO.IOException: The authentication or decryption
has failed. ---> Mono.Security.Protocol.Tls.TlsException: The
authentication or decryption has failed.
  at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel
alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0
  at
Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback
(IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback
(IAsyncResult asyncResult) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
[0x00000] in <filename unknown>:0
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in <filename
unknown>:0
  at WebRequestTest.PostTest (System.String url,
System.Security.Cryptography.X509Certificates.X509Certificate2 cer)
[0x00000] in <filename unknown>:0
  at WebRequestTest.Main (System.String[] args) [0x00000] in <filename
unknown>:0

$ mono --version
Mono JIT compiler version 3.0.10 ((no/eff4cb5 Sat Apr 13 19:24:30 EDT 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.com
TLS:           normal
SIGSEGV:       altstack
Notification:  kqueue
Architecture:  x86
Disabled:      none
Misc:          softdebug
LLVM:          yes(3.2svn-mono)
GC:            Included Boehm (with typed

-- 
Eddy Zavaleta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130521/698317d8/attachment.html>


More information about the Mono-devel-list mailing list