Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for SSL/TLS verify_mode #842
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently PyMySQL determines SSL/TLS verify_mode automatically here. https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py#L337
Related issues: (it is not a PyMySQL bug.) #430
My suggestion is to add configuration so that users can specify any of the verify_mode (ssl.CERT_NONE, ssl.CERT_OPTIONAL, ssl.CERT_REQUIRED) defined in ssl.py.
https://docs.python.org/3/library/ssl.html
It would be good to support
ssl-mode
explained here.https://dev.mysql.com/doc/refman/5.7/en/connection-options.html#option_general_ssl-mode