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.

Certificate for this server is invalid

See original GitHub issue

Description

I run create-react-native-app and then yarn run ios on my local machine and get an error in iOS simulator

There was a problem loading the experience Error while loading: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “exp.host” which could put your confidential information at risk…" (code -1202)

Expected Behavior

Expected local create-react-native-app to run in iOS Simulator.

Observed Behavior

screen shot 2017-06-06 at 9 47 30 am

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts:
npm ls react-native-scripts
crna-cert-test@0.1.0 /Users/byn998/dev/crna-cert-test
├── UNMET PEER DEPENDENCY react@16.0.0-alpha.6
└── react-native-scripts@0.0.30

npm ERR! peer dep missing: react@>=15.4.0, required by react-native-maps@0.14.0
  • npm ls react-native:
npm ls react-native
crna-cert-test@0.1.0 /Users/byn998/dev/crna-cert-test
├── UNMET PEER DEPENDENCY react@16.0.0-alpha.6
└── react-native@0.44.3

npm ERR! peer dep missing: react@>=15.4.0, required by react-native-maps@0.14.0
  • npm ls expo:
 npm ls expo
crna-cert-test@0.1.0 /Users/byn998/dev/crna-cert-test
├─┬ expo@17.0.0
│ └── UNMET PEER DEPENDENCY react@>=15.3.1
└── UNMET PEER DEPENDENCY react@16.0.0-alpha.6

npm ERR! peer dep missing: react@>=15.4.0, required by react-native-maps@0.14.0
npm ERR! peer dep missing: react@>=15.3.1, required by lottie-react-native@1.1.1
npm ERR! peer dep missing: react@>=15.4.0, required by react-native-branch@2.0.0-beta.3
  • node -v:
node -v
v8.0.0
  • npm -v:
npm -v
4.2.0
  • yarn --version:
yarn --version
0.24.6
  • watchman version:
watchman version
{
    "version": "4.7.0"
}

Also specify:

  1. Operating system: macOS Sierra version 10.12.5
  2. Phone/emulator/simulator & version: Xcode 8.3.2 (8E2002), simulator iPhone 7 - iOS 10.2 (143269)

Reproducible Demo

Cloned, installed and tested using a fresh create-react-native-app following instructions. Looking for any assistance to fix this. Might be a configuration problem on my machine, and not a CRNA bug, but I don’t know.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Aid19801commented, Oct 2, 2017

Just letting you know that we had the same issue on the IOS Simulator (node 6.4.0, npm 4.2.0). Fixed via your reset content and settings advice. -a-

1reaction
richieiocommented, Jun 6, 2017

For posterity: I found this Stack Overflow q/a https://stackoverflow.com/questions/25439756/how-to-use-charles-proxy-on-the-xcode-6-ios-8-simulator that lead me to this proxy app called Charles that has a section on proxying, and installing certs for iOS Simulator https://www.charlesproxy.com/documentation/faqs/ssl-connections-from-within-iphone-applications/

Trying this now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get "the certificate for this server is invalid" error? How to fix it
One of the most common reasons for certificate errors is when your device's or computer's date & time are incorrect · Wait it...
Read more >
What is Invalid TLS/SSL Certificate Error and How to Fix it?
One of the most common reasons behind a TLS/SSL error is misconfiguration of your certificate during installation. If you have made any mistake ......
Read more >
the certificate for this server is invalid - Apple Community
the certificate for this server is invalid. Hi can anyone help? I get a message "cannot connect to iTunes Store" when selecting App...
Read more >
A Simple Explanation of SSL Certificate Errors & How to Fix ...
Certificates issued by the server are often referred to as self-signed certificates. ... Resolving an Invalid SSL Certificate.
Read more >
certificate for this server is invalid - Stack Overflow
The certificate for this server is invalid. You might be connecting to a server that is pretending to be "DOMAIN NAME" which could...
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