unable to verify the first certificate
-
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 (
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.
Never good to end up on an issue that's several years old with no replies.
Same setup, same problem.
Wait, isn't this the solution? https://support.snyk.io/hc/en-us/articles/360002618657-Unable-to-get-Issuer-Certificates-Locally
Can confirm. Passing --insecure resolves the issue.
Recommend closing.