[Bug]: step-ca https certificate does not respect issuing CA's EKU

Aperta
#2,536 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hslatman ci sta già lavorando.

Dal 17/3/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug needs triage
Steps to Reproduce
  • Create issuing certificate with extKeyUsage = 'serverCert'.
  • Run step-ca with this issuing certificate configured.
Your Environment
  • OS - docker image smallstep/step-ca:0.29.0
  • step-ca Version - 0.29.0
Expected Behavior

When step-ca issues certificate for it's own HTTPS:

  • step-ca should validate if issuing CA certificate has extKeyUsage
    • If no extKeyUsage extension exists, step-ca should issue HTTPS certificate with extKeyUsage = serverCert, clientCert
    • If extKeyUsage extension exists and it has anyExtendedKeyUsage, step-ca should issue HTTPS certificate with extKeyUsage = serverCert, clientCert
    • If extKeyUsage extension exists and it does not have serverCert usage, step-ca should fail
    • step-ca should take into account if issuing CA certificate has clientCert in extKeyUsage and issue it's HTTPS certificate with or without clientCert EKU. Also warning should be printed. Also DisableTLSClientAuth should be enforced for WebHooks.
Actual Behavior

step-ca ignores if issuing CA has EKU constraints and issues it's own HTTPS certificate with clientAuth and serverAuth EKUs.

Issuing CA certificates MUST contain extKeyUsage extension, and MAY/MAY NOT contain clientAuth EKU

This means, HTTPS certificate issued with clientAuth by CA with serverAuth-only EKU, violates restrictions.

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.