mysqlclient icon indicating copy to clipboard operation
mysqlclient copied to clipboard

windows: use DEFAULT_SSL_VERIFY_SERVER_CERT=0 option

Open methane opened this issue 1 year ago • 1 comments

methane avatar Oct 23 '24 12:10 methane

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.86%. Comparing base (e2a908b) to head (dd37267). Report is 27 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #731   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files           7        7           
  Lines         548      548           
=======================================
  Hits          487      487           
  Misses         61       61           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Oct 23 '24 12:10 codecov[bot]

Suffering from same issue here, I was using MySQL with id/pw instead of ssl and worked fine until a few days ago the client in a newly installed python environment returned:

sqlalchemy.exc.OperationalError: (MySQLdb.OperationalError) (2026, 'TLS/SSL error: Certificate verification failure: The certificate is NOT trusted.')
(Background on this error at: https://sqlalche.me/e/20/e3q8)

Uninstalling mysqlclient, clearing cache and installing mysqlclient==2.2.4 solved the issue for me (with that MySQLdb.get_client_info() returns 3.3.8).

I tried disabling SSL auth in various methods but I had no luck on mysqlclient==2.2.5. Considering existing users using id/pw might face this issue, disabling ssl auth on default as mysqlclient up to 2.2.4 did might be a better option.

mgkid3310 avatar Nov 06 '24 23:11 mgkid3310