Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Sha256 Athentication Plugin (3 replies)

$
0
0
Hello Everybody,

i have issues using the sha256 authentication plugin together with the latest mysql-Jdbcconnector in my android app. After implementing a class which implements the authentication interface like in the example which comes with the mysqlconnector, I can't retriev the RSA public key from the server (method getPublicServerRSA() returns null!)
I created a user how it's discripted in the documentation: http://dev.mysql.com/doc/refman/5.6/en/sha256-authentication-plugin.html

I'm using the latest community server, I think it's 5.5.18, compiled with openssl. OpenSSL is switched off due to the configuration in my.cnf.

I tried to connect with the user which was created to use sha256_password. Tracing with wireshark shows me that I get a server greeting with the information of sha256 password. But then the client doesn't seem to send a request for the retrieval of the RSA-Key. After a couple of SYN, ACK and FIN telegrams at the TCP-Layer nothing happens anymore and my application throws an EOFException with the message that 4 bytes where expected but 0 bytes where received.

Can anyone help me on this issue?

Thank you in advance!

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>