[CSHARP-4336] Support tlsCertificateKeyFile/tlsCertificateKeyFilePassword URI options Created: 27/Sep/22  Updated: 03/Jan/23

Status: Backlog
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Unknown
Reporter: James Kovacs Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-4185 Consider supporting tlsCAFile connect... Backlog

 Description   

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.


Generated at Wed Feb 07 21:47:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.