Content-Length: 257615 | pFad | http://github.com/npm/documentation/issues/1337

23 cafile vs certfile in .npmrc · Issue #1337 · npm/documentation · GitHub
Skip to content

cafile vs certfile in .npmrc #1337

Closed
npm/cli
#7947
@Exotelis

Description

@Exotelis

In the npm documentation, it is stated that the certfile option can be used to specify the path to a certificate file. Interestingly, I kept encountering the following error:

 WARN  GET <private_registry> error (UNABLE_TO_VERIFY_LEAF_SIGNATURE). Will retry in 10 seconds. 2 retries left.

After spending some time troubleshooting, I tried using cafile instead (just out of curiosity), and it worked 😮

My user .npmrc now looks like this:

@some-scope:registry=<private_registry>
//<private_registry>/:cafile=${HOME}/.certificates/mycert.pem

So, is the documentation incorrect, or could this be a bug?

Versions i used:

> npm -v
10.8.3
> node -v
v20.15.0

Edit: Issue id #1337 time to party 🥳🥳

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/npm/documentation/issues/1337

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy