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

Adds capability to define EKUs to be included in CSRs #527

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BeardedPrincess
Copy link
Collaborator

@BeardedPrincess BeardedPrincess commented Sep 16, 2024

In some instances, it may be necessary to include desired EKUs within the CSR when vCert is responsible for generating the private key and subsequent CSR. The vast majority of CAs will ignore this, and issue certificates with properties governed by the CA. However, we have recently encountered one instance where the upstream CA requires for these to be included within the CSR.

This PR primarily adds a new hidden cmdLine flag to the CLI (--eku) which can be used during enroll or gencsr to include additional EKUs as defined. This is limited to currently known and supported EKUs in the crypto/x509 library. This functionality is also extended to the playbook use-case as well, by introducing a new YAML field (eKU) within the request section of a certificate task.

Furthermore, this PR exposes the crypto/x509.CertificateRequest.ExtraAttributes property through the vcert/certificate.Request object which will enable developers using vCert SDK to add additional attributes to the CSR during the request process enabling use-cases that would otherwise require changes directly to the SDK. This was done because the current Attributes property is being deprecated.

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

Successfully merging this pull request may close these issues.

1 participant