question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 14 - Error loading page, Domain: NSURLErrorDomain, Error Code: -1202, Description: The certificate for this server is invalid.

See original GitHub issue

I just ran into a cert validation issue when loading a local development server into my webview. Before I updated to iOS 14 this was not a problem and iOS 13.7 had no issues validating the self signed certs that I was using. Suddenly, after applying the iOS 14 update, I am no longer able to load my local web server in the webview using the same certs.

Does anybody know if the TLS cert trust requirements have changed from iOS 13 to iOS 14?

The error I am getting contains the following info:

Error loading page Domain: NSURLErrorDomain Error Code: -1202 Description: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “XX.X.X.XX” which could put your confidential information at risk.

Metro WARN:

Encountered an error loading page {"canGoBack": false, "canGoForward": false, "code": -1202, "description": "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.10” which could put your confidential information at risk.", "didFailProvisionalNavigation": true, "domain": "NSURLErrorDomain", "loading": false, "target": 7, "title": "", "url": ""}

Device:: iPhone 11 Pro, iPhone 11 Pro Max iOS: 14.0 react-native: 0.63.2 react-native-webview: 10.9.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:19

github_iconTop GitHub Comments

17reactions
github-actions[bot]commented, Jan 11, 2021

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

1reaction
arifdroidcommented, May 3, 2022

try check your SSL certs on you domain

Read more comments on GitHub >

github_iconTop Results From Across the Web

swift - Error Domain=NSURLErrorDomain Code=-1202 "The ...
So you will need to find a way to open that certificate in iOS so that it can be added to the device's...
Read more >
iOS 14 - Error loading page, Domain: NSURLErrorDomain ...
iOS 14 - Error loading page, Domain: NSURLErrorDomain, Error Code: -1202, Description: The certificate for this server is invalid.
Read more >
NSURLErrorDomain Code=-1202 with m… - Apple Developer
I develop an app using MTLS, following the Apple's certificates criteria, but I'm getting the error "The certificate for this server is invalid",...
Read more >
Get "the certificate for this server is invalid" error? How to fix it
Follow these quick tips when getting certificate errors on your iPhone, iPad, or iPod · Restart your device · Force close the app...
Read more >
Liferay iOS Mobile SDK and self sighed SSL Certificate - Forums
Liferay iOS Mobile SDK and self sighed SSL Certificate. ... Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found