cli icon indicating copy to clipboard operation
cli copied to clipboard

unable to verify the first certificate

Open Benson666 opened this issue 6 years ago • 3 comments

  • node -v: v8.12.0
  • npm -v:6.4.1
  • snyk -v: 1.163.0
  • Command run: snyk test

I run this command on a internal linux server which can only be networked through HTTP(S) proxy. I have set SNYK_TOKEN which can work on a unlimited server.

But it Prompts error:

An unknown error occurred. Please include the trace below when reporting to Snyk:

Error: Testing /root/kibana-6.5.1-linux-x86_64...

unable to verify the first certificate at /usr/local/node/lib/node_modules/snyk/src/cli/commands/test.ts:160:19 at Generator.throw () at rejected (/usr/local/node/lib/node_modules/snyk/dist/cli/commands/test.js:5:65) at at process._tickCallback (internal/process/next_tick.js:189:7)

Expected behaviour

Actual behaviour

Steps to reproduce


If applicable, please append the --debug flag on your command and include the output here **ensuring to remove any sensitive/personal details or tokens.

Benson666 avatar May 09 '19 08:05 Benson666

Never good to end up on an issue that's several years old with no replies.

Same setup, same problem.

bartenbach avatar Feb 21 '22 20:02 bartenbach

Wait, isn't this the solution? https://support.snyk.io/hc/en-us/articles/360002618657-Unable-to-get-Issuer-Certificates-Locally

bartenbach avatar Feb 21 '22 20:02 bartenbach

Can confirm. Passing --insecure resolves the issue.

Recommend closing.

bartenbach avatar Feb 21 '22 20:02 bartenbach