Skip to content

Instantly share code, notes, and snippets.

@lacostej
Created January 16, 2018 12:40
Show Gist options
  • Save lacostej/504d07c182de6507f865a38cde2d3a91 to your computer and use it in GitHub Desktop.
Save lacostej/504d07c182de6507f865a38cde2d3a91 to your computer and use it in GitHub Desktop.
DotNet 4.6 TLS broken in Unity 2017.2/3.
DllNotFoundException: CoreFoundation
Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Rethrow as IOException: The authentication or decryption has failed.
Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Rethrow as IOException: The authentication or decryption has failed.
Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) (at <eb1224ae7b184cd09343d47f8a05481b>:0)
Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
Mono.Net.Security.Private.LegacySslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
System.Net.WebConnection.CreateStream (System.Net.HttpWebRequest request) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
Rethrow as WebException: Error: TrustFailure (The authentication or decryption has failed.)
System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
System.Net.HttpWebRequest.GetResponse () (at <2d96311935af40c7b35c6ff5c955d7e7>:0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment