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

feat(cfssljson): Add -output argument to save files in another directory #1278

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

Conversation

eddyzags
Copy link

Problem

Currently, cfssljson doesn't provide any way to write the separate key, certificate, csr, and bundle files in a specific folder. This is inconvenient if we want to output the certificates in a different directory.

A workaround would be to use the -stdout argument, which writes every file in the standard output separated by a blank line. Then, redirect the output to a specific folder.
Example:

cfssl gencert -initca ca_csr.json | cfssljson -bare -stdout ca > path/to/folder/certs

But, this approach writes every entity in one file, then requires us to re-process the output of cfssjson to separate the key, certificate, csr, and bundle.

This PR adds an --output argument to the cfssljson tool to place output files into a specific directory.

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