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
- UI Builder can't set a background image to a sprite from a multi-sprite spritesheet in the Resources folder
- Light2D freeform does not render the internal part when rendered in certain shapes
- Using AddCopyPass causes an incorrect merging of passes.
- Negative Enum value is not pasted correctly when copying from another array
- Silent Crash when generating Lightmap UVs for a model with a large object scale
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