Skip to content

Support ClientCertificate keyword in Connection String #4551

Description

@Aniruddh25

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedUse for Features approved for implementation.

    Projects

    Status
    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions