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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
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