Bug #15172 | SSL Connection failure from Java to MySQL | ||
---|---|---|---|
Submitted: | 23 Nov 2005 4:19 | Modified: | 13 Sep 2012 10:02 |
Reporter: | Andre Pinkowski | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | MySQL Server 5.0.15 | OS: | Windows (Windows XP) |
Assigned to: | CPU Architecture: | Any |
[23 Nov 2005 4:19]
Andre Pinkowski
[26 Nov 2005 9:22]
Vasily Kishkin
Could you please say what version of SDK you use ? Did you read the follow URL about connection using SSL : http://dev.mysql.com/doc/refman/5.0/en/cj-using-ssl.html ?
[27 Nov 2005 4:47]
Andre Pinkowski
Java version; j2sdk1.4.2_10-b03 Yes, I followed the instructions from http://dev.mysql.com/doc/refman/5.0/en/cj-using-ssl.html to the letter.
[3 Dec 2005 9:51]
Vasily Kishkin
I created test case and generated keystore and truststore from example pem keys (folder SSL in sources of mysql). The test case connected without any problem: Connected to 5.0.15 START show status like 'ssl%' Ssl_accept_renegotiates 0 Ssl_accepts 0 Ssl_callback_cache_hits 0 Ssl_cipher AES128-SHA Ssl_cipher_list Ssl_client_connects 0 Ssl_connect_renegotiates 0 Ssl_ctx_verify_depth 0 Ssl_ctx_verify_mode 0 Ssl_default_timeout 500 Ssl_finished_accepts 0 Ssl_finished_connects 0 Ssl_session_cache_hits 0 Ssl_session_cache_misses 0 Ssl_session_cache_mode Unknown Ssl_session_cache_overflows 0 Ssl_session_cache_size 0 Ssl_session_cache_timeouts 0 Ssl_sessions_reused 0 Ssl_used_session_cache_entries 0 Ssl_verify_depth 0 Ssl_verify_mode 0 Ssl_version TLSv1 END Could you please try to use example pem files to check the bug ? My test case is attached.
[3 Dec 2005 9:51]
Vasily Kishkin
Test case
Attachment: Bug15172.java (text/java), 1013 bytes.
[19 Dec 2005 16:48]
Patrick McGloin
Andre, What does show variables like 'have_openssl'; display. Can you start mysqld.exe with --ssl ? FYI.. I have been working on compiling MySQL 5 with SSL on Windows for 2 weeks without success. I did get it to work OK on Redhat though. Patrick pmcgloin@systemax.com
[4 Jan 2006 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".