Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2263

Not loading all certs in a PEM file

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.8.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            thrawn01@gmail.com Derrick Wippler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: