Please add tlsCertificateFile and tlsKeyFile connection string options.

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Fung-Chai LIM
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: