[Bug]: FAIL: TestClient_GetServerTLSConfig_renew
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
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-caVersion - 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from smallstep/certificates
-
bug needs triage
Difficulty 1/5 Under an hour Newbie friendliness 84/100
smallstep/certificates#2863 ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 1/5 Under an hour Newbie friendliness 65/100
smallstep/certificates#2788 ·
Maintainers usually reply within 1 day
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
smallstep/certificates#2730 · 1 comment · 2 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
smallstep/certificates#2860 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: Tokens fail validation after the identity provider rotates its signing key until the JWKS cache expiresPossibly taken @APWHY claimed this 100 days ago. Openbug needs triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
smallstep/certificates#2831 · 3 comments ·
Maintainers usually reply within 1 day
All issues in smallstep/certificates
Similar issues
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
go good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/prometheus-collector#1828 · 1 comment ·
Maintainers usually reply within 2 days