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

It is not possible to explicitly set the SSL/TLS protocol #973

Open
jcouball opened this issue May 16, 2018 · 2 comments
Open

It is not possible to explicitly set the SSL/TLS protocol #973

jcouball opened this issue May 16, 2018 · 2 comments
Milestone

Comments

@jcouball
Copy link

I need to set the TLS version to TLSv1.2 via the MYSQL_OPT_TLS_VERSION MySQL connection option.

https://dev.mysql.com/doc/refman/5.7/en/mysql-options.html
https://dev.mysql.com/doc/refman/5.7/en/encrypted-connection-protocols-ciphers.html

Is this possible with Mysql2? Maybe with :connect_attrs?

@sodabrew
Copy link
Collaborator

This is not currently possible. A new option handler needs to be added here:

static VALUE _mysql_client_options(VALUE self, int opt, VALUE value) {

@sodabrew sodabrew added this to the 0.5.2 milestone May 16, 2018
@jcouball jcouball changed the title Is it possible to specify the TLS version(s) permitted by the client? It is not possible to explicitly set the SSL/TLS protocol (for instance, to use TLSv1.2) May 19, 2018
@jcouball jcouball changed the title It is not possible to explicitly set the SSL/TLS protocol (for instance, to use TLSv1.2) It is not possible to explicitly set the SSL/TLS protocol May 19, 2018
@jcouball
Copy link
Author

Thank you for the response, @sodabrew. I have been sidetracked by other things at the moment, but will revisit this soon. If I find I really need it, I'll take a crack at submitting a PR to add it.

@sodabrew sodabrew modified the milestones: 0.5.2, 0.5.3 Jul 4, 2018
@sodabrew sodabrew modified the milestones: 0.5.3, 0.5.4 Apr 28, 2019
@sodabrew sodabrew modified the milestones: 0.5.4, 0.6.0 Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants