Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS certificate verification error when running k6exec container #77

Open
jwcastillo opened this issue Jan 18, 2025 · 0 comments
Open

Comments

@jwcastillo
Copy link

Description

When executing the k6exec container with the following command:

docker run --rm -i k6exec:latest -v run - < examples/combined.js

I encounter the following error:

time="2025-01-18T08:30:12Z" level=error msg="build error: Get \"https://registry.k6.io/catalog.json\": tls: failed to verify certificate: x509: certificate signed by unknown authority" app=k6exec

Steps to Reproduce

  1. Pull the latest version of the k6exec Docker image.
  2. Save an example script as examples/combined.js.
  3. Run the following command:
docker run --rm -i k6exec:latest -v run - < examples/combined.js
  1. Observe the TLS certificate verification error.

Expected Behavior

The command should execute successfully, connecting to https://registry.k6.io/catalog.json without TLS-related errors.

Actual Behavior

The command fails with a TLS certificate verification error:

tls: failed to verify certificate: x509: certificate signed by unknown authority

Additional Information

It seems the issue is related to the TLS certificate verification when accessing https://registry.k6.io/catalog.json. This might be caused by:

  • A missing or untrusted Certificate Authority (CA).
  • An outdated or improperly configured certificate in the k6exec container.
    Please provide guidance on resolving this issue or clarify if additional configuration is required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant