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

Please add tlsCertificateFile and tlsKeyFile connection string options.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None
    • Fully Compatible

    Description

      Currently, there is only the tlsCertificateKeyFile option (https://docs.mongodb.com/manual/reference/connection-string/) but the file must contain both certificate and key (mongo/options/clientoptions.go).

      The crypto/tls package provides the LoadX509KeyPair function that "reads and parses a public/private key pair from a pair of files."  In light of this, it should follow that the mongo-go-driver also provide 2 connection string options for specifying the client certificate and client key files separately.  Using new option names will provide full compatibility.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora
            fungchai.lim@ncs.com.sg Fung-Chai LIM
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: