Is your feature request related to a problem? Please describe.
SqlClient does not currently support the ClientCertificate keyword in a connection string. This prevents applications from specifying a client certificate directly in the connection configuration for scenarios that require certificate-based authentication or mutual TLS.
Because this setting cannot be expressed in a standard connection string, developers are forced to use custom configuration workarounds outside the SqlClient connection model, which is less portable, less discoverable, and harder to maintain.
Describe the solution you'd like
Add support for the ClientCertificate keyword in the SqlClient connection string so that a client certificate can be configured directly as part of the connection string.
The expected behavior should include:
- accepting
ClientCertificate in the connection string
- validating and parsing the value consistently with other SqlClient connection-string keywords
- passing the configured certificate through the connection flow to the underlying authentication logic
- documenting the option in the SqlClient connection-string reference and examples
This would make certificate-based authentication easier to configure and align SqlClient with standard connection-string-based configuration patterns.
Describe alternatives you've considered
- Relying on
System.Data.Odbc instead of SqlClient.
Additional context
Support for ClientCertificate would be valuable in secure deployment scenarios that rely on certificate-based authentication, mutual TLS, or centralized certificate management. Enabling this option in the connection string would improve usability, consistency, and portability for developers using SqlClient in real-world secure environments.
Is your feature request related to a problem? Please describe.
SqlClient does not currently support the
ClientCertificatekeyword in a connection string. This prevents applications from specifying a client certificate directly in the connection configuration for scenarios that require certificate-based authentication or mutual TLS.Because this setting cannot be expressed in a standard connection string, developers are forced to use custom configuration workarounds outside the SqlClient connection model, which is less portable, less discoverable, and harder to maintain.
Describe the solution you'd like
Add support for the
ClientCertificatekeyword in the SqlClient connection string so that a client certificate can be configured directly as part of the connection string.The expected behavior should include:
ClientCertificatein the connection stringThis would make certificate-based authentication easier to configure and align SqlClient with standard connection-string-based configuration patterns.
Describe alternatives you've considered
System.Data.Odbcinstead ofSqlClient.Additional context
Support for
ClientCertificatewould be valuable in secure deployment scenarios that rely on certificate-based authentication, mutual TLS, or centralized certificate management. Enabling this option in the connection string would improve usability, consistency, and portability for developers using SqlClient in real-world secure environments.