-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Needed
Summary
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.
How to Reproduce
Create a PEM file with multiple certs and use either tlsCertificateKeyFile or sslClientCertificateKeyFile options to load the PEM file. Only the final cert will be loaded into the tls config cert list.
Additional Background
Code change that resolves this bug can be found here https://github.com/mailgun/mongo-go-driver/pull/1/commits/71f1654d022eaa0234345143edd0ee157ecb2077 If this bug is approved will submit a PR against the main repo.
- related to
-
GODRIVER-2650 Fix incorrect X509 certificate being used as username for authentication
- Closed
-
DRIVERS-2038 Test tlsCertificateKeyFile .pem file with certificate chain
- Backlog