Bug #65538 [Ver->Csd]: cafile option of ssl stream context does not work with stream wrappers

From: Date: Wed, 19 Feb 2014 11:18:27 +0000
Subject: Bug #65538 [Ver->Csd]: cafile option of ssl stream context does not work with stream wrappers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184358@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65538&edit=1 ID: 65538 Updated by: rdlowrey@php.net Reported by: sebastian@php.net Summary: cafile option of ssl stream context does not work with stream wrappers -Status: Verified +Status: Closed Type: Bug Package: OpenSSL related Operating System: Irrelevant PHP Version: 5.5Git-2013-08-24 (Git) Assigned To: rdlowrey Block user comment: N Private report: N New Comment: Automatic comment on behalf of rdlowrey Revision: http://git.php.net/?p=php-src.git;a=commit;h=c7220dc6c54f6d3fb57eb5c096f2195749489120 Log: Fix Bug #65538 (cafile now supports stream wrappers) Previous Comments: ------------------------------------------------------------------------ [2013-08-24 14:05:58] sebastian@php.net Description: ------------ The SSL stream context's "cafile" option expects the name of a file. When this name is not a "normal" filename but, for instance, "phar://phar-alias/ca.pem" I get the following error Unable to set verify locations `phar://phpunit-3.8-gb5ac7cc.phar/ca.pem' This looks to me like stream wrappers are not applied in this context. This makes it impossible to ship a PHAR that contains a CA file and use that to verify the peer (without copying it from the PHAR to a temporary file). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65538&edit=1

« previous php.bugs (#184358) next »