[Bug]: FAIL: TestClient_GetServerTLSConfig_renew

Open
#2,443 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@hslatman is already working on this.

Since Oct 28, 2025.

Assessment

This issue has not been assessed yet.

Description

bug needs triage
Steps to Reproduce

Hi! We got this self-check error when building on a riscv64 machine. I think this is not related to the arch but that this host is a bit slower, causing the time comparisons of cert validity to take longer time... Any ideas how to solve this?

https://ci.debian.net/packages/g/golang-github-smallstep-certificates/testing/riscv64/65382505/

Your Environment
  • OS - Debian
  • step-ca Version - 0.28.4
Expected Behavior

PASS

Actual Behavior
2624s === RUN   TestClient_GetServerTLSConfig_renew
2624s 2025/10/22 09:34:10 Building new tls configuration using step-ca x509 Signer Interface
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_transport
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_transport/https://127.0.0.1:38487
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_transport/https://127.0.0.1:41513
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_tlsConfig
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_tlsConfig/https://127.0.0.1:38487
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_tlsConfig/https://127.0.0.1:41513
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_no_ClientCert
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_no_ClientCert/https://127.0.0.1:38487/no-cert
2624s === RUN   TestClient_GetServerTLSConfig_renew/with_no_ClientCert/https://127.0.0.1:41513/no-cert
2624s 2025/10/22 09:34:16 http: TLS handshake error from 127.0.0.1:44032: tls: client didn't provide a certificate
2624s === RUN   TestClient_GetServerTLSConfig_renew/fail_with_default
2624s === RUN   TestClient_GetServerTLSConfig_renew/fail_with_default/https://127.0.0.1:38487/no-cert
2624s 2025/10/22 09:34:16 http: TLS handshake error from 127.0.0.1:60472: remote error: tls: bad certificate
2624s === RUN   TestClient_GetServerTLSConfig_renew/fail_with_default/https://127.0.0.1:41513/no-cert
2624s 2025/10/22 09:34:16 http: TLS handshake error from 127.0.0.1:44040: remote error: tls: bad certificate
2624s 2025/10/22 09:34:16 Sleeping for 5s ...
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_transport
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_transport/https://127.0.0.1:38487
2624s 2025/10/22 09:34:21 http: TLS handshake error from 127.0.0.1:60480: remote error: tls: bad certificate
2624s     tls_test.go:362: http.Client.Get() error = Get "https://127.0.0.1:38487": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-10-22T09:34:21Z is after 2025-10-22T09:34:21Z
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_transport/https://127.0.0.1:41513
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_tlsConfig
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_tlsConfig/https://127.0.0.1:38487
2624s 2025/10/22 09:34:21 http: TLS handshake error from 127.0.0.1:60492: remote error: tls: bad certificate
2624s     tls_test.go:362: http.Client.Get() error = Get "https://127.0.0.1:38487": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-10-22T09:34:21Z is after 2025-10-22T09:34:21Z
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_tlsConfig/https://127.0.0.1:41513
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_no_ClientCert
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_no_ClientCert/https://127.0.0.1:38487/no-cert
2624s     tls_test.go:362: http.Client.Get() error = Get "https://127.0.0.1:38487/no-cert": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-10-22T09:34:22Z is after 2025-10-22T09:34:21Z
2624s 2025/10/22 09:34:22 http: TLS handshake error from 127.0.0.1:60502: remote error: tls: bad certificate
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_with_no_ClientCert/https://127.0.0.1:41513/no-cert
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_fail_with_default
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_fail_with_default/https://127.0.0.1:38487/no-cert
2624s 2025/10/22 09:34:22 http: TLS handshake error from 127.0.0.1:44066: remote error: tls: bad certificate
2624s === RUN   TestClient_GetServerTLSConfig_renew/renewed_fail_with_default/https://127.0.0.1:41513/no-cert
2624s 2025/10/22 09:34:22 http: TLS handshake error from 127.0.0.1:60512: remote error: tls: bad certificate
2624s 2025/10/22 09:34:22 http: TLS handshake error from 127.0.0.1:44074: read tcp 127.0.0.1:41513->127.0.0.1:44074: use of closed network connection
2624s --- FAIL: TestClient_GetServerTLSConfig_renew (11.53s)
2624s     --- PASS: TestClient_GetServerTLSConfig_renew/with_transport (0.14s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/with_transport/https://127.0.0.1:38487 (0.08s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/with_transport/https://127.0.0.1:41513 (0.06s)
2624s     --- PASS: TestClient_GetServerTLSConfig_renew/with_tlsConfig (0.18s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/with_tlsConfig/https://127.0.0.1:38487 (0.08s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/with_tlsConfig/https://127.0.0.1:41513 (0.10s)
2624s     --- PASS: TestClient_GetServerTLSConfig_renew/with_no_ClientCert (0.14s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/with_no_ClientCert/https://127.0.0.1:38487/no-cert (0.08s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/with_no_ClientCert/https://127.0.0.1:41513/no-cert (0.06s)
2624s     --- PASS: TestClient_GetServerTLSConfig_renew/fail_with_default (0.09s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/fail_with_default/https://127.0.0.1:38487/no-cert (0.03s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/fail_with_default/https://127.0.0.1:41513/no-cert (0.05s)
2624s     --- FAIL: TestClient_GetServerTLSConfig_renew/renewed_with_transport (0.18s)
2624s         --- FAIL: TestClient_GetServerTLSConfig_renew/renewed_with_transport/https://127.0.0.1:38487 (0.04s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/renewed_with_transport/https://127.0.0.1:41513 (0.14s)
2624s     --- FAIL: TestClient_GetServerTLSConfig_renew/renewed_with_tlsConfig (0.13s)
2624s         --- FAIL: TestClient_GetServerTLSConfig_renew/renewed_with_tlsConfig/https://127.0.0.1:38487 (0.03s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/renewed_with_tlsConfig/https://127.0.0.1:41513 (0.10s)
2624s     --- FAIL: TestClient_GetServerTLSConfig_renew/renewed_with_no_ClientCert (0.08s)
2624s         --- FAIL: TestClient_GetServerTLSConfig_renew/renewed_with_no_ClientCert/https://127.0.0.1:38487/no-cert (0.04s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/renewed_with_no_ClientCert/https://127.0.0.1:41513/no-cert (0.03s)
2624s     --- PASS: TestClient_GetServerTLSConfig_renew/renewed_fail_with_default (0.12s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/renewed_fail_with_default/https://127.0.0.1:38487/no-cert (0.04s)
2624s         --- PASS: TestClient_GetServerTLSConfig_renew/renewed_fail_with_default/https://127.0.0.1:41513/no-cert (0.08s)
Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Dominant language
Go
Stars
8.9k
Forks
599
Avg merge
21h 20m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/certificates

All issues in smallstep/certificates

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.