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.

Add option to disable strict ssl

See original GitHub issue

This doesn’t seem to be possible currently when running node-gyp install.

Being able to disable strict SSL on the download request would prevent this error (I hope):

gyp info it worked if it ends with ok
gyp info using node-gyp@0.12.2
gyp info using node@0.10.26 | darwin | x64
gyp http GET https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.11.10/node-v0.11.10.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error 
gyp ERR! stack Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
gyp ERR! stack     at SecurePair.<anonymous> (tls.js:1370:32)
gyp ERR! stack     at SecurePair.EventEmitter.emit (events.js:92:17)
gyp ERR! stack     at SecurePair.maybeInitFinished (tls.js:982:10)
gyp ERR! stack     at CleartextStream.read [as _read] (tls.js:469:13)
gyp ERR! stack     at CleartextStream.Readable.read (_stream_readable.js:320:10)
gyp ERR! stack     at EncryptedStream.write [as _write] (tls.js:366:25)
gyp ERR! stack     at doWrite (_stream_writable.js:226:10)
gyp ERR! stack     at writeOrBuffer (_stream_writable.js:216:5)
gyp ERR! stack     at EncryptedStream.Writable.write (_stream_writable.js:183:11)
gyp ERR! stack     at write (_stream_readable.js:583:24)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "/Users/dgillhespy/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Users/dgillhespy/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/node-gyp/bin/node-gyp.js" "install" "--target=0.11.10" "--dist-url=https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist" "--arch=x64"
gyp ERR! cwd /Users/dgillhespy/.atom
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
TooTallNatecommented, May 23, 2014

Try invoking node-gyp with NODE_TLS_REJECT_UNAUTHORIZED=0.

9reactions
tigersaggycommented, Feb 12, 2019

From command line set NODE_TLS_REJECT_UNAUTHORIZED=0 and then you can run npm install

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add behavior to allow disabling SSL certificate checking when ...
Most of these tools have an option to disable strict SSL certificate checking, which let you get around the problem: npm config strict-ssl...
Read more >
How to ignore invalid and self signed ssl connection errors ...
I wanted to curl command to ignore SSL certification warning. Does curl command have a --no-check-certificate option like wget command on Linux ...
Read more >
How to fix SSL certificate error when running Npm on Windows?
Edit: It's a really common suggestion to turn off HTTPS for this problem either by using an HTTP registry or setting NODE_TLS_REJECT_UNAUTHORIZED ....
Read more >
HTTP Strict Transport Security (HSTS) - Cloudflare Docs
Go to SSL/TLS > Edge Certificates. For HTTP Strict Transport Security (HSTS), click Enable HSTS. Set the Max Age Header to 0 (Disable)....
Read more >
Configure SSL for the GitLab Linux package
Create the /etc/gitlab/ssl directory and copy your key and certificate there: ... If changing the ciphers is not an option, you can disable...
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