Skip to content

Latest jf docker image doesn't work with CA certificates #2832

@nipuna-perera

Description

@nipuna-perera

Describe the bug

Running jf CLI via docker image throws certificate errors.

Current behavior

When I run any artifactory command (even jf rt ping) inside the latest docker image, I get

Get "https://myartifactory.company.com/api/system/ping": tls: failed to verify certificate: x509: certificate signed by unknown authority

If I exec into the container, and do apk update && apk upgrade, the error goes away.

Adding the cacert to ~/.jfrog/security/certs/ did not change anything

Reproduction steps

docker run -it --entrypoint="" docker run releases-docker.jfrog.io/jfrog/jfrog-cli-v2-jf jf rt -- ping --url=https://myartifactory.company.com

Expected behavior

No certificate errors as I have the correct cacerts installed in the container.

JFrog CLI version

2.73.0

Operating system type and version

MacOS Sequoia 15.2

JFrog Artifactory version

No response

JFrog Xray version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions