-
Notifications
You must be signed in to change notification settings - Fork 901
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
GODRIVER-2263 Load all certs in a PEM #834
GODRIVER-2263 Load all certs in a PEM #834
Conversation
…e or sslClientCertificateKeyFile options
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.
Looks good! Thank you again for the contribution. I have one question.
I suggest adding a regression test. I am unable to add commits to this PR, but here is a proposed test: d3b0deb
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.
Thank you for adding the test. LGTM! Requesting additional Go team members for further review.
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.
Looks good to me; thanks for your contribution, @thrawn01!
Created DRIVERS-2038 to request this test be added to all drivers. |
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.
Apologies for the slow review, looks great! Thanks for all the helpful docs links and test 👍
https://jira.mongodb.org/browse/GODRIVER-2263
When using tlsCertificateKeyFile or sslClientCertificateKeyFile options,
ClientOptions.ApplyURI()
only loads the final cert in the provided PEM file. This is undesired when a PEM contains multiple certs to be considered during a TLS hand shake. This PR attaches all certs and private keys found in the PEM and passes them totls.X509KeyPair()
for consideration.