Search Issue Tracker
Third Party Issue
Votes
0
Found in
2021.3.46f1
2022.3.53f1
6000.0.28f1
6000.1.0a6
Issue ID
UUM-87962
Regression
No
[iOS]"The destination host has an erroneous SSL certificate" error is thrown when using UnityWebRequest to connect to the server with a self-signed certificate
Reproduction steps:
1. Create cert.pem and key.pem files
2. Host a web server with the created certificates
3. Install the generated cert.pem on an iOS device and toggle the “Enable full trust for root certificates” setting for the certificate
4. Open the attached “ASDQWE” project
5. Open the Build Profiles Window (File > Build Profiles)
6. In the Build Profiles Window, press the “Build” button to create an XCode project
7. Open the XCode project
8. In the XCode Window, deploy the build to a device
9. Inside the Player, enter the server’s IP address (without the port) into the “IP Address” input field and press the “Connect” button
10. Observe the text above the input field
Expected result: The text displays “Received: <html><body>Hello World!</body></html>”
Actual result: The text displays "The destination host has an erroneous SSL certificate"
Reproducible with: 2021.3.46f1, 2022.3.53f1, 6000.0.28f1, 6000.1.0a6
Reproducible environment: MacOS 14.6.1 Intel, MacMini 14.3.1 M1 (user’s)
Not reproducible environment: No other environment tested
Reproducible on:
VLNQA00382, Apple iPhone 7 (iPhone9,3), Android 15.8.3, CPU: Apple A10 Fusion, GPU: Apple A10 Fusion
VLNQA00395, Apple iPhone 13 (iPhone14,5), Android 15.0, CPU: Apple A15 Bionic, GPU: Apple A15 Bionic
iPhone X (user’s)
Not reproducible on:
Samsung Galaxy A04 (user’s)
MacOS Buildtime, Runtime (user’s)
Note: The issue occurs if the server is hosted on a Windows device as well
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note:
On iOS Unity uses NSURLSession under the hood and by default certificate handling is done by Apple's default implementation.
The self signed certificate can be handled by using certificate handler. This should work not only on iOS, but also on most other platforms.
https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Networking.CertificateHandler.ValidateCertificate.html