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

Please add tlsCertificateFile and tlsKeyFile connection string options.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: