SSL routines:ssl_choose_client_version:unsupported protocol
I have mysql-connector-python==8.0.29 installed on a windows desktop machine (python 3.7) connecting to an mysql server (mySQL server 5.6.10 on an EC2 instance) and connection pools are created and used just fine.
I then started to test the use of connection pools, on the target system, where the script that creates them runs (is the same as the windows machine above) but run on another AWS EC2 instance (Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-1022-aws x86_64)) and connects to the same mySQL server as above.
The AWS instance running the script is using mysql-connector-python==8.0.29 installed, however is running Python 3.8 not 3.7 (as with the windows machine). However I don't think the python version is causing the issue.
I get the following issue, which is potentially nothing to-do with mySQL and everything todo with SSL!
However I wondered if anyone had any recommendations/thoughts/wisdom?
-- Logs begin at Thu 2022-08-04 15:53:25 UTC. --
Aug 16 07:31:50 ip-address python3[126843]: return CMySQLConnection(*args, **kwargs)
Aug 16 07:31:50 ip-address python3[126843]: File "/usr/local/lib/python3.8/dist-packages/mysql/connector/connection_cext.py", line 94, in __init__
Aug 16 07:31:50 ip-address python3[126843]: self.connect(**kwargs)
Aug 16 07:31:50 ip-address python3[126843]: File "/usr/local/lib/python3.8/dist-packages/mysql/connector/abstracts.py", line 1052, in connect
Aug 16 07:31:50 ip-address python3[126843]: self._open_connection()
Aug 16 07:31:50 ip-address python3[126843]: File "/usr/local/lib/python3.8/dist-packages/mysql/connector/connection_cext.py", line 251, in _open_connection
Aug 16 07:31:50 ip-address python3[126843]: raise errors.get_mysql_exception(msg=exc.msg, errno=exc.errno,
Aug 16 07:31:50 ip-address python3[126843]: mysql.connector.errors.InterfaceError: 2026 (HY000): SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
Aug 16 07:31:50 ip-address systemd[1]: run_production_tests.service: Main process exited, code=exited, status=1/FAILURE
Aug 16 07:31:50 ip-address systemd[1]: run_production_tests.service: Failed with result 'exit-code'.
Subject
Written By
Posted
SSL routines:ssl_choose_client_version:unsupported protocol
August 16, 2022 02:04AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.