» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2006, 07:44 AM
Anton Anton is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Anton is on a distinguished road
Default SSL connection error.

hi, I am testing on a Windows XP platform. MySQL 5.0.21.

According to the release notes, SSL is included in the binary for MySQL 5.0.20a on Windows.

So, I installed OpenSSL for windows and completed the process without any errors.. the .pem files seem to be properly generated. The relevant portions of the my.ini files are:

[client]

ssl-ca="C:/OpenSSL/cacert.pem"
ssl-cert="C:/OpenSSL/client-cert.pem"
ssl-key="C:/OpenSSL/client-key.pem"

[mysqld]

ssl-ca="C:/OpenSSL/cacert.pem"
ssl-cert="C:/OpenSSL/server-cert.pem"
ssl-key="C:/OpenSSL/server-key.pem"


However, when I fire up the mysql.exe command line client on the same machine, I receive the error:

ERROR 2026 (HY000): SSL connection error

Any suggestions?
Thanks, -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-16-2006, 07:47 AM
rian rian is offline
Senior Member
 
Join Date: Jul 2006
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 18
rian is on a distinguished road
Default

First of all, make sure you have OpenSSL installed ON THE MYSQL SERVER.

Follow as given:

1) Modify C:\OpenSSL\bin\openssl.cnf file with the following changes:

[ CA_default ]

dir = ./MyCompany # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several ctificates with same subject.
new_certs_dir = $dir/newcerts # default place for new certs.

certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crlnumber = $dir/crlnumber # the current crl number
# must be commented out to leave a V1 CRL
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
RANDFILE = -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error while installation. Paola MySQL Forums 0 12-12-2006 04:43 AM
database connection error? Jestinee MySQL Forums 1 11-28-2006 05:12 AM
Error Nr.2013-Lost connection.... Kamch MySQL Forums 1 10-30-2006 04:38 AM
connection error emion MySQL Forums 1 08-09-2006 10:27 AM
ASP Error Codes - Description dam Introductions 1 12-07-2005 10:09 AM


All times are GMT. The time now is 12:11 PM.