-
Notifications
You must be signed in to change notification settings - Fork 817
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
Secure binlog connection with SSL #70
Comments
Hi. Unfortunately it's not implemented. At the very least we're missing SSL Request Packet (more details here) (followed by SSL exchange) + AuthenticateCommand & ClientCapabilities.SSL. |
Thanks for the response. We'll see what we can do. |
I am finding this library super-useful too, thank you for creating it. But I am running into this very same SSL issue. I don't suppose there has been any progress on this? |
@mvelliste I'm afraid not. We're using IPsec so it never became an issue for us. |
Tested on MySQL 5.6.31, running Java 8 (1.8.77). CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%';
GRANT USAGE ON *.* TO 'username'@'%' REQUIRE SSL;
FLUSH PRIVILEGES; (readme.md updated with usage instructions) |
Hi there. How did you manage to connect to MySQL using SSL? I can't seem to find any documentation on this anywhere... Thanks, |
First of all, thanks for a great library! We are using the library in Clojure for replicating a MySQL instance to a separate database.
However, we have not been able to make a secure connection for streaming the binlog. We have managed to connect using SSL for normal jdbc SQL queries, so the setup and certificates are supposedly correct.
We get this error:
When we try to set a custom socket factory to the
BinLogClient
that returns a newjavax.net.ssl.SSLSocket
using thejavax.net.ssl.SSLSocketFactory.getDefault()
factory, we get:Any pointers how to get a working SSL connection for binlog streaming? We are using the 0.2.4 version of the library.
Thanks!
The text was updated successfully, but these errors were encountered: