MySQL Forums
Forum List  »  Security

Connect Stunnel client to SSL MySql Server (without Stunnel Server)
Posted by: Area sistemi Ripartizione Informatica
Date: September 18, 2014 05:41AM

I tried to connect my workstation (with an installed stunnel client) to a MySql Server SSL enabled, but MySql Server abort this connection.

The standard mysql ssl connection works:

mysql -h <server_name> -u <user_name> -p --ssl-key=<path>/client-key.pem --ssl-cert=<path>/client-cert.pem

Stunnel connection doesn't work:

mysql -h 127.0.0.1 -u <user_name> -P 3307 -p --ssl-key=<path>/client-key.pem --ssl-cert=<path>/client-cert.pem

with stunnel.conf:
-------------------------------------
client = yes

pid = /etc/stunnel/stunnel.pid

debug = 7
output = /var/log/stunnel/stunnel.log

TIMEOUTclose=10
sslVersion = all
#options = NO_SSLv2

[mysqls]
accept = 127.0.0.1:3307
connect = <server>:3306
----------------------------------

(I tried with or without "options = NO_SSLv2")

I ask for your help to find what is wrong.

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Connect Stunnel client to SSL MySql Server (without Stunnel Server)
6705
September 18, 2014 05:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.