Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.3.0f1
2018.4.0f1
2019.1.0a1
2019.1.5f1
2019.2.0a1
2019.3.0a1
Issue ID
1161854
Regression
No
[Mobile] Getting TlsException: Handshake failed - error code when trying to connect to a host
To reproduce:
1. Open user attached project "TestWebSocket.zip"
2. Open "SampleScene.unity" scene
3. Enter Play mode
4. Observe in the console "SSL Stream complete"
5. Build for iOS
6. Deploy the Xcode project to an iOS device
7. Observe in the top UI "TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_FLAG_NOT_TRUSTED"
Expected result: getting the same result on the device as in the Editor console "SSL Stream complete"
Actual result: getting "TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: UNITYTLS_X509VERIFY_FLAG_NOT_TRUSTED" error
Reproduced on:
2018.3.0f1 2018.3.14f1 2019.1.0a1 2019.1.7f1 2019.2.0b7 2019.3.0a6
Device reproduced on:
- iPhone 8 Plus iOS 12.0
- VLNQA00009, Samsung Galaxy Note8 (SM-N950F), Android 8.0.0, CPU: Exynos 9 Octa 8895, GPU: Mali-G71
Notes:
- Getting another issue on 2018.3.0b12 and earlier because of this: https://fogbugz.unity3d.com/f/cases/1134343/
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
Resolution Note (2018.4.X):
The certificate used by this server uses a key with incorrect usage flag, which should be easy to fix by creating a new certificate using a key with the right usage settings. MbedTLS which we use on most platforms (but not on Desktop/editor) rejects the entire handshake if this usage flag is incorrectly set.
For details see answers on the forum
https://forum.unity.com/threads/unity-2017-1-tls-1-2-still-not-working-with-net-4-6.487415/page-2#post-4668068