changed root CA creation options, added encryption #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Jacob,
Thank you for minica.
Here is a PR somehow "reverting" #18 with the few other changes I mentioned in comments of this PR.
The other changes are :
to allow automated use, when required (creation/use of key),
password can be provided by environment (MINICA_KEY_PASSWORD).
If it is not, it will be asked to user.
Note that this adds a dependency to "golang.org/x/crypto"
this is for ssh/terminal, to not display typed password
Also, as you stated in #14 that you wanted to keep things "radically simple", and while still wanting to help find where a certificate comes from, I've added a simple CN customization option.
added -ca-name flag to customize issuer CN for easier identification
this replaces "minica" by a custom string in "minica root ca 3f3732"
added/modified some error checking.
modified README/Usage accordingly.
As I needed these changes, I hope you'll find them worth the merge.