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

Add BundleSign and BundleAuthSign methods to client Remote #1219

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

Conversation

jayme-github
Copy link

BundleSign/BundleAuthSign methods can be used like Sign/AuthSign to sign
CSRs but will return the "optimal" bundle instead of only the
certificate.
For that to work, the caller needs to set the "bundle" parameter in the
json POST data to true.

This is definitely not the best way to implement this, but I think it's
the least intrusive one and does not break the interface of the client.

BundleSign/BundleAuthSign methods can be used like Sign/AuthSign to sign
CSRs but will return the "optimal" bundle instead of only the
certificate.
For that to work, the caller needs to set the "bundle" parameter in the
json POST data to true.

This is definitely not the best way to implement this, but I think it's
the least intrusive one and does not break the interface of the client.
This extends the BundleSign/BundleAuthSign API to return the root CA
provided in the bundle response as well.
As it is not clear if the root CA is always returned by the CFSSL API,
just make sure that the code does not panic. Also update docs for the
Bundle*Sign methods.
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