Houssam Ali
Houssam Ali

Reputation: 1

Xray docker image using "jf docker scan DOCKER_IMAGE:TAG --insecure-tls=true" --> error "x509: certificate signed by unknown authority"

I am trying to scan a docker image using "jf docker scan DOCKER_IMAGE:TAG --insecure-tls=true" but an error "x509: certificate signed by unknown authority" is showing up, Here is the log :

[Warn] (Attempt 1) - Failure occurred while sending GET request to https://THE_URL/api/system/version: Get "https:///api/system/version": x509: certificate signed by unknown authority

[Info] executor timeout after 3 attempts with 0 milliseconds wait intervals

INFORMATION: When I try to send a Curl request from the terminal to the URL it works.

Upvotes: 0

Views: 955

Answers (1)

Muhammed Kashif
Muhammed Kashif

Reputation: 1511

The issue here is that JFrog CLI cannot get the certs to trust the connection and fails. I would suggest referring to this wiki first to understand the JFrog CLI's cert validation. Overall, you should simply add the pem file of the cert to the JFROG_CLI_HOME/security/certs directory.

Upvotes: 1

Related Questions