The Wayback Machine - https://web.archive.org/web/20200601103439/https://github.com/PyMySQL/PyMySQL/issues/842
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SSL/TLS verify_mode #842

Open
moomindani opened this issue Feb 25, 2020 · 0 comments
Open

Add support for SSL/TLS verify_mode #842

moomindani opened this issue Feb 25, 2020 · 0 comments

Comments

@moomindani
Copy link

@moomindani moomindani commented Feb 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.