[BUG] Unable to get local issuer certificate

Open
#43 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
node.js
Domain
cli, security

Research direction

Start by reproducing the reported npm install -g @gitlawb/openclaude@latest command and review the linked npm debug log. Trace the download request for microsoft/ripgrep-prebuilt through the package-manager wrapper and its certificate handling; done means the reported installation no longer fails with UNABLE_TO_GET_ISSUER_CERT_LOCALLY.

Written by the indexing model from the issue text.

Description

➜  openclaude git:(main) sfw -v
✔ downloading latest sfw binary...
Socket Firewall Free, version 1.8.0
➜  openclaude git:(main) npm install -g @gitlawb/openclaude@latest
Protected by Socket Firewall
npm warn deprecated [email protected]: uuid@10 and below is no longer supported.  For ESM codebases, update to uuid@latest.  For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
npm error code 1
npm error path /opt/homebrew/lib/node_modules/@gitlawb/openclaude/node_modules/@vscode/ripgrep
npm error command failed
npm error command sh -c node ./lib/postinstall.js
npm error Finding release for v15.0.1
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v15.0.1
npm error Deleting invalid download cache
npm error Download attempt 1 failed, retrying in 2 seconds...
npm error Finding release for v15.0.1
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v15.0.1
npm error Deleting invalid download cache
npm error Download attempt 2 failed, retrying in 4 seconds...
npm error Finding release for v15.0.1
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v15.0.1
npm error Deleting invalid download cache
npm error Download attempt 3 failed, retrying in 8 seconds...
npm error Finding release for v15.0.1
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v15.0.1
npm error Deleting invalid download cache
npm error Download attempt 4 failed, retrying in 16 seconds...
npm error Finding release for v15.0.1
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v15.0.1
npm error Deleting invalid download cache
npm error Error: unable to get local issuer certificate
npm error     at TLSSocket.onConnectSecure (node:internal/tls/wrap:1655:34)
npm error     at TLSSocket.emit (node:events:509:20)
npm error     at TLSSocket._finishInit (node:internal/tls/wrap:1101:8)
npm error     at ssl.onhandshakedone (node:internal/tls/wrap:887:12) {
npm error   code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
npm error }
npm error Error: unable to get local issuer certificate
npm error     at TLSSocket.onConnectSecure (node:internal/tls/wrap:1655:34)
npm error     at TLSSocket.emit (node:events:509:20)
npm error     at TLSSocket._finishInit (node:internal/tls/wrap:1101:8)
npm error     at ssl.onhandshakedone (node:internal/tls/wrap:887:12) {
npm error   code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
npm error }
npm error Error: unable to get local issuer certificate
npm error     at TLSSocket.onConnectSecure (node:internal/tls/wrap:1655:34)
npm error     at TLSSocket.emit (node:events:509:20)
npm error     at TLSSocket._finishInit (node:internal/tls/wrap:1101:8)
npm error     at ssl.onhandshakedone (node:internal/tls/wrap:887:12) {
npm error   code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
npm error }
npm error Error: unable to get local issuer certificate
npm error     at TLSSocket.onConnectSecure (node:internal/tls/wrap:1655:34)
npm error     at TLSSocket.emit (node:events:509:20)
npm error     at TLSSocket._finishInit (node:internal/tls/wrap:1101:8)
npm error     at ssl.onhandshakedone (node:internal/tls/wrap:887:12) {
npm error   code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
npm error }
npm error Downloading ripgrep failed after multiple retries: Error: unable to get local issuer certificate
npm error     at TLSSocket.onConnectSecure (node:internal/tls/wrap:1655:34)
npm error     at TLSSocket.emit (node:events:509:20)
npm error     at TLSSocket._finishInit (node:internal/tls/wrap:1101:8)
npm error     at ssl.onhandshakedone (node:internal/tls/wrap:887:12)
npm error A complete log of this run can be found in: /Users/usernameeee/.npm/_logs/2026-05-03T08_22_25_401Z-debug-0.log

=== Socket Firewall ===

Warning: Socket Firewall did not detect any package fetch attempts

2026-05-03T08_22_25_401Z-debug-0.log

Dominant language
No language data
Stars
271
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SocketDev/sfw-free

All issues in SocketDev/sfw-free

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.