- Home /
TlsException on ios build
Every time I build ios build I get error:
TlsException: Invalid certificate received from server. Error code: 0x3 Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) (at :0) Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) (at :0) Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) (at :0) Rethrow as IOException: The authentication or decryption has failed. Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) (at :0) Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) (at :0) Rethrow as IOException: The authentication or decryption has failed. Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) (at :0) Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) (at :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 :0) Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) (at :0) Rethrow as WebException: Error: TrustFailure (The authentication or decryption has failed.) System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) (at :0) System.Net.HttpWebRequest.GetResponse () (at :0) UnityEditor.iOS.PostProcessiPhonePlayer.GetUsymUploadAuthToken (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:2508) UnityEditor.HostView:OnGUI()
This error appears even if I clear project. I'm using Unity 2017.1.1 .net 4.6
I have the same issue for Android with Unity 2017.2.0 and 3.0 The solution for me was in logging out from Unity account and checking "Work offline". After this, my build was successful locally. On Unity Cloud I don't have this issue
Answer by pesahov · Oct 30, 2017 at 10:13 AM
I have the same error for iOS build on 2017.1.2p2 .NET 4.6 but don't have it with Unity Cloud
TlsException: Invalid certificate received from server. Error code: 0x3
Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (System.IAsyncResult asyncResult) (at <59bcb3a41e31492f91d9513566444e88>:0)
Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (System.IAsyncResult ar, System.Boolean ignoreEmpty) (at <59bcb3a41e31492f91d9513566444e88>:0)
Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (System.IAsyncResult result) (at <59bcb3a41e31492f91d9513566444e88>:0)
Rethrow as IOException: The authentication or decryption has failed.
Mono.Security.Protocol.Tls.SslClientStream.EndNegotiateHandshake (System.IAsyncResult result) (at <59bcb3a41e31492f91d9513566444e88>:0)
Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (System.IAsyncResult asyncResult) (at <59bcb3a41e31492f91d9513566444e88>:0)
Rethrow as IOException: The authentication or decryption has failed.
Mono.Security.Protocol.Tls.SslStreamBase.EndRead (System.IAsyncResult asyncResult) (at <59bcb3a41e31492f91d9513566444e88>:0)
Mono.Net.Security.Private.LegacySslStream.EndAuthenticateAsClient (System.IAsyncResult asyncResult) (at :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 :0)
Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) (at :0)
Rethrow as WebException: Error: TrustFailure (The authentication or decryption has failed.)
System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) (at :0)
System.Net.HttpWebRequest.GetResponse () (at :0)
UnityEditor.iOS.PostProcessiPhonePlayer.GetUsymUploadAuthToken (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:2568)
UnityEditor.HostView:OnGUI()
I have the same issue for Android with Unity 2017.2.0 and 3.0 The solution for me was in logging out from Unity account and checking "Work offline". After this, my build was successful locally. On Unity Cloud I don't have this issue
Answer by revanaii · Jan 07, 2018 at 04:01 PM
Happens for me as well in 2017.1.2f1 Perfomance Reporting service turned to be the cause of the issue
Your answer
Follow this Question
Related Questions
unity5.2.4 build ios package Error 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Xcode error when Archiving linker command failed with exit code 1 (use -v to see invocation) clang 1 Answer
Getting Error building Player: Exception: Invalid PBX project (parsing line 0) 0 Answers