jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
518 stars 223 forks source link

Jfrog npm install bug with self-signed certificate #1751

Open usinelogicielle opened 1 year ago

usinelogicielle commented 1 year ago

Describe the bug

I tried to do a jfrog npm install with self-signed certificate but I have an SSL error x509: certificate signed by unknown authority from a gitlab pipeline.

Current behavior

I initialize the NPM_CONFIG_CAFILE and copy the certificates under the .jfrog/security/certs/. Then when I execute the command ./jfrog npm install. I so have the behavior: [Warn] (Attempt 1) - Failure occurred while sending GET request to https://url/: Get "https://url/": x509: certificate signed by unknown authority

Reproduction steps

No response

Expected behavior

I would expect the initialization of npm variable and the copy of certificate in jfrog folder enough to be working.

Current bypass I specify the certificates in the variable Golang: SSL_CERT_FILE for jfrog CLI. It currently works but I would like to know if there is another more standard way ?

JFrog CLI version

2.14.0

Operating system type and version

linux/arm/v7

JFrog Artifactory version

No response

JFrog Xray version

No response

usinelogicielle commented 1 year ago

Hi,

No one has encountered the problem?

usinelogicielle commented 9 months ago

Good day everyone,

No news on this problem?

usinelogicielle commented 1 week ago

Hi everyone,

Still no news on this bug?