SSL connection through MySQL Connector/J fails with javax.net.ssl.SSLException: Unsupported record version Unknown-0.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Undecided
|
Vladislav Vaintroub |
Bug Description
An attempt to establish an SSL connection to MariaDB server 5.1.60, 5.2.10, 5.3.2, 5.3.3 through MySQL Connector/J (5.1.18) fails with the exception below.
The same connection to MariaDB 5.2.9 and 5.3.1 works fine, as well as MySQL 5.1.60.
In maria-5.2 tree the problem appeared between revno 3050 and 3052 -- 3050 works, 3052 does not.
Originally the problem was reported in AskMonty Knowledgebase (http://
com.mysql.
The last packet successfully received from the server was 1,400 milliseconds ago. The last packet sent successfully to the server was 1,355 milliseconds ago.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at com.mysql.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at com.mysql.
at com.mysql.
at com.mysql.
at java.sql.
at java.sql.
at test.main(
Caused by: javax.net.
at sun.security.
at sun.security.
at sun.security.
at sun.security.
at sun.security.
at sun.security.
at com.mysql.
... 17 more
Below is the code of the java test to reproduce the failure. It is based on ConnectionRegre
# Java test:
import java.sql.
import java.sql.
import java.sql.ResultSet;
import java.sql.
import java.util.
public class test
{
public static void main (String argv[])
{
String dbUrl = "jdbc:mysql:
String trustStorePath = "ssl-test-
System.
System.
System.
System.
Connection sslConn = null;
try {
sslConn = DriverManager.
if (!valueRs.next()) {
}
String conId = valueRs.
}
catch (Exception e) {
}
}
}
# End of java test
Changed in maria: | |
assignee: | Sergei (sergii) → Vladislav Vaintroub (wlad-montyprogram) |
Changed in maria: | |
status: | New → Fix Released |
Also filed in JIRA as MDEV-140