Bug #71845 [Com]: Impossible to use PDO with ssl connections

From: Date: Thu, 29 Oct 2020 19:48:42 +0000
Subject: Bug #71845 [Com]: Impossible to use PDO with ssl connections
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230017@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71845&edit=1 ID: 71845 Comment by: willie dot owens91 at gmail dot com Reported by: source dot spider at gmail dot com Summary: Impossible to use PDO with ssl connections Status: Feedback Type: Bug Package: PDO MySQL Operating System: centos 7 PHP Version: 7.0.4 Block user comment: N Private report: N New Comment: I am attempting to use PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT with a value of false, yet still face this issue. Using PHP 7.2.14. Previous Comments: ------------------------------------------------------------------------ [2020-10-28 11:39:05] nikic@php.net There is a PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT attribute since PHP 7.0.18, added in https://github.com/php/php-src/commit/247ce052cd0fc7d0d8ea1a0e7ea2075e9601766a. That attribute does address this issue, right? ------------------------------------------------------------------------ [2020-02-10 13:50:10] nj dot andreasson at gmail dot com I was yet again hit with this issue in an AWS environment. I first commented on this issue almost 4 years ago in bug #71003 but it was sadly closed further down the line (not sure why?). As explained in bug 71003, I still see that the best solution would be to expose a "verify_peer_name" directive that you could populate with the expected peer name to verify. Thanks for considering it! ------------------------------------------------------------------------ [2020-01-27 12:50:19] cmb@php.net Related To: Bug #72878 ------------------------------------------------------------------------ [2016-05-18 02:05:16] requinix@php.net Related To: Bug #71003 ------------------------------------------------------------------------ [2016-05-18 02:04:09] requinix@php.net See also request #71003 to expose the mysqli flag to PDO. ------------------------------------------------------------------------ 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=71845 -- Edit this bug report at https://bugs.php.net/bug.php?id=71845&edit=1

« previous php.bugs (#230017) next »