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.

[Bug] 'unable to get local issuer certificate' - Config options for 'strict-ssl' and 'cafile' missing from Berry?

See original GitHub issue

Describe the bug

Previously, there was an option to force SSL and set a CA file. Looking at the config options for Berry, this is no longer the case. We don’t use a proxy to access the internet, but rather a signed certificate that acts as a MiTM for our traffic. I’m getting my team to just start to work with Yarn and I’d like us to migrate to the latest version. However, without the ability to set these options like with npm and yarn v1, i get the ‘unable to get local issuer certificate’ error and so I’ve been forced to uninstall Berry and go back to Yarn v1.21.1.

To Reproduce

Not sure how to reproduce this outside of our internal network. These options are just missing from Berry.

Screenshots Running the npx @yarnpkg/doctor command from the migration guide gives me this: image

Environment if relevant (please complete the following information):

  • OS: Windows
  • Node version 12.6.0
  • Yarn version 2.0.0-rc.27

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:34 (15 by maintainers)

github_iconTop GitHub Comments

15reactions
andreialecucommented, Oct 6, 2020

I just opened a PR at #1934 which should address this.

You can test it before it gets merged with yarn set version from sources --branch 1934

Add to .yarnrc.yml:

  • caFilePath: <path to CA .pem file) to supply a custom CA
  • or enableStrictSsl: false to disable cert errors.
3reactions
arcaniscommented, Oct 7, 2020

Let’s discuss about binjumper in https://github.com/yarnpkg/berry/issues/1938 👍

Thanks @andreialecu for implementing this much requested feature! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install error - unable to get local issuer certificate
Try. npm config set strict-ssl false. This is a alternative shared in this url https://github.com/nodejs/node/issues/3742.
Read more >
SSL cerfrificaion problem: 'unable to get local issuer certificate'
The 'unable to get local issuer certificate' is a common SSL error faced by devs trying to push, pull, or clone a git...
Read more >
.npmrc | pnpm
The pnpm config command can be used to update and edit the contents of the user and global .npmrc files. The four relevant...
Read more >
Configuration options | Yarn - Package Manager
List of all the configuration option for Yarn (yarnrc files) ... While Yarn will automatically find them in the parent directories, they should...
Read more >
now-cli login error "unable to get local issuer certificate"
0 λ npm list -g --depth 0 C:\Program Files\nodejs +-- @servicenow/cli@19.0.0 +-- keytar@7.7.0 `-- npm@6.14.13 npm ERR! peer dep missing: @octokit/core@>=3, ...
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