Bug #65538 [Opn->Ver]: cafile option of ssl stream context does not work with stream wrappers
| From: | rdlowrey@php.net | Date: | Sun, 16 Feb 2014 03:27:53 +0000 |
| Subject: | Bug #65538 [Opn->Ver]: 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-184317@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: Open
+Status: Verified
Type: Bug
Package: OpenSSL related
Operating System: Irrelevant
PHP Version: 5.5Git-2013-08-24 (Git)
-Assigned To:
+Assigned To: rdlowrey
Block user comment: N
Private report: N
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