-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
mysqli ssl_key and ssl_cert should not be mandatory #2815
Comments
BTW, I'm happy to make a PR with the changes unless there's a reason I'm wrong or unless dbal shouldn't support this usage for some reason. |
@gauauu this is possibly a regression, so go ahead and send a patch if you can 👍 |
lcobucci
added a commit
to lcobucci/dbal
that referenced
this issue
Nov 19, 2017
…to 2.6 Backporting: doctrine#2816
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In MysqliConnection.php, in setSecureConnection, there's a clause that ensures that ssl_key and ssl_cert are set.
I have a mysql connection that needs an ssl_ca to be specified, but doesn't need ssl_key or ssl_cert. I've been using this connection succefully (without this library) with this call:
$db->ssl_set(null, null, '/etc/msqlcacert.pem', null, null);
But with the error checking here, I can't do that.
If I hack MysqliConnection.php to remove the "mandatory" check, and set ssl_key and ssl_cert to optional, it works on my connection:
Thanks!
The text was updated successfully, but these errors were encountered: