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

Return the signed ca in the ca_chain response field within sign-intermediate api call. #15524

Merged

Conversation

stevendpclark
Copy link
Contributor

  • When signing a CA certificate we should include it along with the issuers CA chain in the response.

 - When signing a CA certificate we should include it along with the signing CA's CA chain in the response.
if cb.CAChain != nil && len(cb.CAChain) > 0 {
resp.Data["ca_chain"] = cb.CAChain
}
resp.Data["ca_chain"] = caChain

case "pem_bundle":
resp.Data["certificate"] = cb.ToPEMBundle()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what makes me think this is a good idea: this gives you leaf + chain of the cert in the certificate field. :-) Avoids the need for concat.

changelog/15524.txt Outdated Show resolved Hide resolved
@stevendpclark stevendpclark force-pushed the stevendpclark/return-signed-cert-in-chain-sign-intermediate branch from 6c472b7 to f43046e Compare May 20, 2022 13:41
@stevendpclark stevendpclark merged commit c698b71 into main May 20, 2022
@stevendpclark stevendpclark deleted the stevendpclark/return-signed-cert-in-chain-sign-intermediate branch May 20, 2022 15:06
Gabrielopesantos pushed a commit to Gabrielopesantos/vault that referenced this pull request Jun 6, 2022
…mediate api call. (hashicorp#15524)

* Return signed ca as part of ca_chain field within sign-intermediate

 - When signing a CA certificate we should include it along with the signing CA's CA chain in the response.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants