You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
meaning, that it will accept ssl_mode argument only in the case of MySQL, but not in the case of MariaDB. This is pretty odd, because even though MariaDB does not support the sophisticated ssl_mode argument as MySQL does, it still allows some SSL tweaking:
MYSQL_OPT_SSL_VERIFY_SERVER_CERT: Enables (or disables) server certificate verification
MYSQL_OPT_SSL_ENFORCE: Whether to force TLS. This enables TLS with the default system settings. It does not prevent the connection from being created if the server does not support TLS.
So, seems logical for me to do is to allow the same ssl_mode option for MariaDB, but inside of mysqlclient handle it accordingly. So for the lib user, the interface would remain the same.
Activity
Add ability to customize ssl mode settings PyMySQL#474(Added specific…
thereisnosun commentedon Jan 13, 2021
I already provided the PR, which is fixing the issue described above:
#475
Let's discuss the change and make mysqlclient even better :)
Add ability to customize ssl mode settings PyMySQL#474(fixed comparas…
matusvalo commentedon Aug 12, 2022
ssl_modeis already present in the code - see https://github.com/PyMySQL/mysqlclient/blob/main/doc/user_guide.rst#functions-and-attributes.The documentation in https://mysqlclient.readthedocs.io/ is outdated and hence missing this information (#552)
Add files via upload