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

Self signed certificate in certificate chain error #980

Closed
roby2001 opened this issue Oct 13, 2016 · 18 comments
Closed

Self signed certificate in certificate chain error #980

roby2001 opened this issue Oct 13, 2016 · 18 comments
Labels

Comments

@roby2001
Copy link

@roby2001 roby2001 commented Oct 13, 2016

Hey,

I'm trying to move from npm to yarn. I've installed yarn and set up the following config variables : http-proxy , https-proxy and strict-ssl : false.

When I try to yarn, at step [1/4] Resolving packages I get the following error :

error self signed certificate in certificate chain
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1057:38)
    at emitNone (events.js:67:13)
    at TLSSocket.emit (events.js:166:7)
    at TLSSocket._finishInit (_tls_wrap.js:596:8)

As far as I know websockets don't work behind my corporate proxy. Any workarounds ?

@vbfox

This comment has been minimized.

Copy link
Contributor

@vbfox vbfox commented Oct 13, 2016

Looks the same as #841 ssl settings (like CA or strict ssl) don't work yet 😢

@roby2001 roby2001 closed this Oct 13, 2016
@roby2001 roby2001 reopened this Oct 13, 2016
@roby2001

This comment has been minimized.

Copy link
Author

@roby2001 roby2001 commented Oct 13, 2016

@vbfox Thanks! Will follow that post.

@sebmck

This comment has been minimized.

Copy link
Contributor

@sebmck sebmck commented Oct 15, 2016

We've merged support for cafile and strict-ssl so this issue should be resolved.

@sebmck sebmck closed this Oct 15, 2016
@ptrstpp950

This comment has been minimized.

Copy link

@ptrstpp950 ptrstpp950 commented Oct 17, 2016

@kittens in which version it is or will be released?

@SoreGums

This comment has been minimized.

Copy link

@SoreGums SoreGums commented Oct 19, 2016

working now in yarn v0.16.0

@tommck

This comment has been minimized.

Copy link

@tommck tommck commented Oct 21, 2016

I still get this error with 0.16.1

@klauern

This comment has been minimized.

Copy link

@klauern klauern commented Oct 24, 2016

Same here. I tried just the cafile option, then added the strict-ssl option and I'm still getting the following from yarn-error.log:

 C:\Program Files\nodejs\node.exe C:\Users\Me\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js add vue

PATH: ....

Yarn version:
  0.16.1

Node version:
  6.1.0

Platform:
  win32 x64

npm manifest:
  {
    "name": "...",
    "version": "1.0.0",
    "description": "...",
    "main": "index.html",
    "author": "Nick Klauer ...",
    "license": "MIT"
  }

yarn manifest:
  No manifest

bower manifest:
  No manifest

Lockfile:
  No lockfile

Trace:
  Error: self signed certificate in certificate chain
      at Error (native)
      at TLSSocket.<anonymous> (_tls_wrap.js:1055:38)
      at emitNone (events.js:86:13)
      at TLSSocket.emit (events.js:185:7)
      at TLSSocket._finishInit (_tls_wrap.js:580:8)
      at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:412:38)
@mmrath

This comment has been minimized.

Copy link

@mmrath mmrath commented Oct 25, 2016

Looks like it works when I specify the config in .yarnrc but not from command line

@cgatian

This comment has been minimized.

Copy link

@cgatian cgatian commented Oct 31, 2016

For me calling yarn config set "strict-ssl" false from the CLI updated strict-ssl to a string value in the JSON file, not a boolean. If you open up your .yarnrc (located in \Users\ in Windows) and update to the following, it works.

# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
strict-ssl false

@jeffbski

This comment has been minimized.

Copy link

@jeffbski jeffbski commented Apr 7, 2017

I also found that if I duplicated the strict-ssl and other config from .npmrc into .yarnrc then things started working (or use yarn config set to add each part). I'm not sure why it didn't pick it up from .npmrc.

@damiandennis

This comment has been minimized.

Copy link

@damiandennis damiandennis commented May 2, 2017

not working anymore in 0.23.3

@rmanivannan

This comment has been minimized.

Copy link

@rmanivannan rmanivannan commented Aug 22, 2017

same with v0.27.5 aswell

error An unexpected error occurred: "https://registry.npmjs.org/babel-polyfill: self signed certificate in certificate chain". info If you think this is a bug, please open a bug report with the information provided in "/Users/****/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@danielmhair

This comment has been minimized.

Copy link

@danielmhair danielmhair commented Nov 28, 2017

I had this same type of error. Doing yarn config set "strict-ssl" false resolved the issue for me. Thanks @cgatian

@monicapeddi021

This comment has been minimized.

Copy link

@monicapeddi021 monicapeddi021 commented Nov 30, 2017

I can't find .yarnrc file in C:/Users. Pls let know how can I create it.
@cgatian @danielmhair

@danielmhair

This comment has been minimized.

Copy link

@danielmhair danielmhair commented Dec 11, 2017

@monicapeddi021 I never created the file myself. I simply went to the command line and ran yarn config set "strict-ssl" false

@texdc

This comment has been minimized.

Copy link

@texdc texdc commented Feb 19, 2018

@danielhusar I just tried yarn config set "strict-ssl" false, but it didn't work:

$ yarn --version
1.3.2
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


registry "https://nexus.our-private.zone/repository/private-repo/"
lastUpdateCheck 1519057517516
strict-ssl false
@ronaldomoreira

This comment has been minimized.

Copy link

@ronaldomoreira ronaldomoreira commented May 21, 2018

I had the same problem on windows 10.

open windows powerShell and enter the following command:

`npm config set registry http://registry.npmjs.org/`

Then you can use:

npm install [your package]
@CosmosHannah

This comment has been minimized.

Copy link

@CosmosHannah CosmosHannah commented Nov 14, 2019

I had this same type of error. Doing yarn config set "strict-ssl" false resolved the issue for me. Thanks @cgatian

Yes, I have the same error when running yarn install. That commend works for me too. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.