[Mono-list] HttpWebRequest Evernote SDK Exception

bpops214 willvill1995 at gmail.com
Sun Nov 10 21:48:52 UTC 2013


I am trying to use the Evernote SDK with mono, I am able to compile and run
the sample application included with the sdk.
However when the application tries to contact the evernote servers I get an
exception.

I have narrowed down the problem to the HttpWebRequest method
GetRequestStream in the THttpCLient class (part of the included thrift
library).
The exact exception I am receiving from GetRequestStream is below, any help
would be greatly appreciated.


/System.Net.WebException: Error getting response stream (Write: The
authentication or decryption has failed.): SendFailure --->
System.IO.IOException: The authentication or decryption has failed. --->
Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from
server. Error code: 0xffffffff800b010a
  at
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.RemoteValidation
(Mono.Security.Protocol.Tls.ClientContext context, AlertDescription
description) [0x00084] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:224 
  at
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates
(Mono.Security.X509.X509CertificateCollection certificates) [0x0001f] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:196 
  at
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1
() [0x00054] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:105 
  at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process ()
[0x00037] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls.Handshake/HandshakeMessage.cs:105 
  at (wrapper remoting-invoke-with-check)
Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process ()
  at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage
(Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00039] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:81 
  at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback
(IAsyncResult asyncResult) [0x00123] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs:397 
  --- End of inner exception stack trace ---
  at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback
(IAsyncResult asyncResult) [0x0002a] in
/build/mono/src/mono-3.2.3/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslStreamBase.cs:105 
  --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult
asyncResult) [0x00043] in
/build/mono/src/mono-3.2.3/mcs/class/System/System.Net/HttpWebRequest.cs:836 
  at System.Net.HttpWebRequest.GetRequestStream () [0x00057] in
/build/mono/src/mono-3.2.3/mcs/class/System/System.Net/HttpWebRequest.cs:854 
  at Thrift.Transport.THttpClient.SendRequest () [0x00020] in
/home/william/Programming/C#/Source/evernote-sdk-csharp/src/Thrift/Transport/THttpClient.cs:151/



--
View this message in context: http://mono.1490590.n4.nabble.com/HttpWebRequest-Evernote-SDK-Exception-tp4661292.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list