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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
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