Not loading all certs in a PEM file

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 1.8.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Needed
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Kevin Albertson
              Reporter:
              Derrick Wippler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: