Skip to content

Support MYSQL_SERVER_PUBLIC_KEY #682

Closed

Description

@methane

https://dev.mysql.com/doc/c-api/8.0/en/mysql-options.html

MySQL 8.0.33 start deprecating mysql_native_password. Now caching_sha2_password is the default authentication plugin.
When using caching_sha2_password in insecure transport (e.g. TCP without TLS), password must be encrypted with server public key.
The safest way to use the server's public key is to use the MYSQL_SERVER_PUBLIC_KEY option.

MariaDB Connector/C supports MYSQL_SERVER_PUBLIC_KEY since they support sha256_password in 3.0.

Activity

  1. added this to the v2.3 milestone on Dec 15, 2023
  2. taozuhong commented on Sep 6, 2024

    @taozuhong

    MariaDB Connector/C have much more different with MySQL Connector/C, we should consider splitting it into two library now.

  3. added a commit that references this issue on Nov 12, 2024
    feea60c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions