Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command: ionic resources have error: unable to get local issuer certificate #2532

Closed
jimiatworking opened this issue Jul 17, 2017 · 6 comments

Comments

@jimiatworking
Copy link

Description:
I'm already setup proxy and unable to get icon and splash when I give ionic resource command.
Got Error: unable to get local issuer certificate

Steps to Reproduce:

  1. ionic resources

Output:
[DEBUG] !!! ERROR ENCOUNTERED !!!
Error: unable to get local issuer certificate
[DEBUG] Error: unable to get local issuer certificate
at TLSSocket. (_tls_wrap.js:1098:38)
at emitNone (events.js:105:13)
at TLSSocket.emit (events.js:207:7)
at TLSSocket._finishInit (_tls_wrap.js:628:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:458:38)

image

@imhoffd
Copy link
Contributor

imhoffd commented Jul 17, 2017

This is an issue with your SSL setup, either locally or your proxy.

Did you need to configure npm to work with your proxy? The Ionic CLI will need to be configured similarly. See nodejs/node#3742

@SimplyComplexable
Copy link

Does anyone have more information on this? I've followed the link from @dwieeb, but nothing in there has helped. I've changed the npm registry, the '@Ionic' registry and the cordova registry, but nothing fixes the issue. Did you ever find a solution @jimiatworking?

@jimiatworking
Copy link
Author

@SimplyComplexable nope, haven't had a solution here.

@rahulbhooteshwar
Copy link

set an environment variable NODE_TLS_REJECT_UNAUTHORIZED with value 0 in your windows/linux system.

@imhoffd
Copy link
Contributor

imhoffd commented Mar 15, 2018

Setting NODE_TLS_REJECT_UNAUTHORIZED to 0 or otherwise disabling SSL verification is highly discouraged.

If you know you're behind a proxy, you need to configure your environment for a proxy:

  • Please carefully follow the docs if you're behind a proxy: https://ionicframework.com/docs/cli/configuring.html#using-a-proxy
  • Your organization needs to provide proxy details for you. If you don't know the details, talk with your network administrator.
  • Remember to avoid disabling SSL verification. This can lead to prolonged insecure configuration with your computer.

If you know you're not behind a proxy, make sure your system is up to date, which should ensure you have the latest CA certificates distributed with every OS.

If this specific issue (SSL error upon ionic login) is happening with the latest CLI (3.20.0), please provide an updated stack trace and/or error message.

@imhoffd imhoffd closed this as completed Jul 12, 2018
@sunnyrai31
Copy link

i was facing the same issue.but due to only one application which is Zscaler.if you are also having similar app,close it first and then try it.
here is few setups.
install the ionic using : npm i -g ionic
create a project : ionic start
go inside the dir : ionic serve
u might have to make resuce ssl false but i didn't.

@ionic-team ionic-team locked and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants