Edit report at http://bugs.php.net/bug.php?id=54962&edit=1

 ID:                 54962
 Updated by:         [email protected]
 Reported by:        sukarna_0 at yahoo dot co dot in
 Summary:            either real_connect or ssl_set is not working
                     properly
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            MySQLi related
 Operating System:   CentOS5.5
 PHP Version:        5.3SVN-2011-05-31 (snap)
-Assigned To:        
+Assigned To:        mysql
 Block user comment: N
 Private report:     N

 New Comment:

I think there is a feature difference between libmysql and mysqlnd. When using 
MySQLnd you can use stream wrappers to load certificates, with libmysql you are 
limited to local files. We will verify that.


Previous Comments:
------------------------------------------------------------------------
[2011-05-31 11:57:56] sukarna_0 at yahoo dot co dot in

Description:
------------
I have a code as follows.



$ssl_ca = 'https://rds.amazonaws.com/doc/mysql-ssl-ca-cert.pem';

$mysqli->ssl_set(null, null, $ssl_ca, null, null);

$result = $mysqli->real_connect($location, $usr, $password, $dbname, $port, 
null, MYSQLI_CLIENT_SSL);



This code works with PHP 5.3.5 in windowsXP sp3 and never throws any error even 
if $ssl_ca contains a wrong path.



And this code always throws error- '(HY000/2026): SSL connection error' in 
CentOS 5.5 32bit(PHP 5.3.5)



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54962&edit=1

Reply via email to