[Bug]: FAIL: TestClient_GetServerTLSConfig_renew

Aperta
#2,443 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hslatman ci sta già lavorando.

Dal 28/10/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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).

Lingua principale
Go
Stelle
8.9k
Fork
599
Merge medio
21h 20m
PR unite (30g)
15

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di smallstep/certificates

Tutte le issue di smallstep/certificates

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.