Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4336

Support tlsCertificateKeyFile/tlsCertificateKeyFilePassword URI options

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Historically the .NET/C# Driver has not supported the x509-related URI options because .NET didn't support PEM files out of the box and those URI options have been PEM files. .NET 5 introduced built-in support for PEM files:

      https://www.scottbrady91.com/c-sharp/pem-loading-in-dotnet-core-and-dotnet

      We should consider supporting the standard certificate-related URI options. Potential problems that must still be addressed:

      1. As far as I know, .NET still doesn't have the ability to specify an alternate CA. Any CAs must be registered as a RootCA for the user or machine. We need to investigate whether this is still the case.
      2. We currently do not have a net5.0 or net6.0 TFM in our production code, which would be required for working with PEM files. Not a big deal to add another TFM, but it would increase test times unless we drop an older TFM like netstandard2.0.

            Assignee:
            Unassigned Unassigned
            Reporter:
            james.kovacs@mongodb.com James Kovacs
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: