Skip to content

Support for client TLS auth to Mysql instances #2293

@srinivasmohan

Description

@srinivasmohan

Hi,
Thanks for building/maintaining sqlx! I have a use-case for client connections using TLS auth in my infra and I cant find an open feature request. I have a working change-set to implement this for rustls. Mind if I were to send a PR? Essentially, adds MySqlConnectOptions.ssl_client_cert() to allow rustls mode configure_tls_connector to load up the client cert during connection time.

Is your feature request related to a problem? Please describe.
Lack of SSL client auth for mysql clients

Describe the solution you'd like
Option to pass a combined PEM file via MySqlConnectOptions.ssl_client_cert() that gets used by the TLS Connector.

Describe alternatives you've considered
I did consider mysql_async crate but I liked the semantics of sqlx better.

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions