Bug #54962 [Opn->Asn]: either real_connect or ssl_set is not working properly

From: Date: Wed, 08 Jun 2011 00:23:43 +0000
Subject: Bug #54962 [Opn->Asn]: either real_connect or ssl_set is not working properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161236@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54962&edit=1 ID: 54962 Updated by: johannes@php.net 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

« previous php.bugs (#161236) next »