-
Notifications
You must be signed in to change notification settings - Fork 80
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
added options for a CA bundle #25
Conversation
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.
Thanks for the contribution, this looks great sans the name of the parameter ;)
Also, could you please update the README with the new -h
output ? Thanks!
Two more things:
|
log.Fatalf("Error reading CA certificate file: %v", err) | ||
} | ||
caCertPool = x509.NewCertPool() | ||
caCertPool.AppendCertsFromPEM(caCert) |
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.
Add a check that the certificate was loaded successfully (AppendCertsFromPEM() would return false if not)?
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 looks great, agree with the points above too. Check that comment on validating that the read file actually contained a valid cert, otherwise looks good to me.
Will this be fixed? |
@aparcar merged |
That was quick, thanks. |
please pull latest |
Feedback welcome. Thanks for the tool 🙂