Bug #55385 [Fbk]: mysqlnd doesn't connect using ssl
| From: | pajoye@php.net | Date: | Wed, 19 Oct 2011 13:50:46 +0000 |
| Subject: | Bug #55385 [Fbk]: mysqlnd doesn't connect using ssl | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164437@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55385&edit=1
ID: 55385
Updated by: pajoye@php.net
Reported by: fuxa_kos at unihost dot cz
Summary: mysqlnd doesn't connect using ssl
Status: Feedback
Type: Bug
Package: MySQL related
Operating System: Linux
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
@fuxa_kos at unihost dot cz
Socket does not support SSL.
Previous Comments:
------------------------------------------------------------------------
[2011-10-19 13:49:26] pajoye@php.net
What Andrey is asking is a wireshark dump of the network traffic between php and
mysql while your script is trying to connect.
------------------------------------------------------------------------
[2011-10-19 13:30:49] fuxa_kos at unihost dot cz
In my case it is connect via TCP (to other box), not thru socket.
------------------------------------------------------------------------
[2011-10-19 12:09:08] dnsdns at gmail dot com
I know its not connecting with SSL, because I put a restriction on the user in
MySQL.
It connects fine if PHP is not compiled with mysqlnd. If it is compiled with
that the
sample code I provided only works if I drop the SSL restriction from MySQL
(thats why
I get access denied).
Will try to get a packet dump, but it takes time.
I have reproduced this behaviour on Gentoo (trying to connect to MySQL 5.1.59 on
the
same box but connecting with ip) and SLES11 (using MySQL client 5.0.67
connecting to
another computer having 5.1) also.
------------------------------------------------------------------------
[2011-10-18 18:56:14] andrey@php.net
Hi, can you provide a packet dump from the wire. mysqlnd + ssl doesn't work for localhost (unix
socket) because of the limitations the PHP Streams impose on mysqlnd, but here the case seems to be
different?
------------------------------------------------------------------------
[2011-10-03 20:43:52] dnsdns at gmail dot com
I forgot to mention that PHP was compiled with openssl support so mysqlnd could
have used it to connect.
There was no error about the connection, just the access denied coming from mysql
5.1.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=55385
--
Edit this bug report at https://bugs.php.net/bug.php?id=55385&edit=1