-
Notifications
You must be signed in to change notification settings - Fork 39
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
Copy the server CA certificate with file resource #420
Conversation
8b0001a
to
cbce2fb
Compare
8626dae
to
c3c2eb4
Compare
@@ -54,7 +54,6 @@ | |||
Stdlib::Absolutepath $pki_dir = $certs::pki_dir, | |||
Optional[Stdlib::Absolutepath] $server_cert = $certs::server_cert, | |||
Optional[Stdlib::Absolutepath] $server_key = $certs::server_key, | |||
Optional[Stdlib::Absolutepath] $server_cert_req = $certs::server_cert_req, |
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.
Why was that ever needed? (curious-Evgeni is afraid of the answer)
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.
I am not sure --
FileUtils.cp(resource[:custom_req], build_path(File.basename(req_file))) |
8a33911
to
08b7c0e
Compare
I think this is simpler and more straight forward now. |
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.
I thought I acked that one already, but seems not
This simplifies the code required to make the server CA certificate which is either just a copy of the default CA or the supplied custom CA certificate from a user.
The current implementation requires the server CA certificate in the
build_dir
due to how we generate the tarball for Capsules.Stay tuned for further enhancements, for now this is a small step simplification.