-
Notifications
You must be signed in to change notification settings - Fork 4
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
Root cert setup #40
Root cert setup #40
Conversation
app/lib/clients/vault/certificate.rb
Outdated
issuer_name: root_ca_ref, | ||
ttl: "87600h").data[:certificate] | ||
# save the root certificate | ||
File.write("tmp/#{root_ca_ref}.crt", root_cert) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be used any where. I assume you are just saving it to a known location where you can find it manually if needed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes -- i am not sure it's really needed since it can be retrieved as needed from vault -- and this does not seem to include the private key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay there's no private key because these are generated as internal
where Vault keeps the private key and we never need to know it. Generating the cert with exported
path will respond with private key as well as cert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Moves the configuration of a root cert from rake task (developer only) to main app
Fixes #38