php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65538 cafile option of ssl stream context does not work with stream wrappers
Submitted: 2013-08-24 14:05 UTC Modified: 2014-02-16 03:27 UTC
From: sebastian@php.net Assigned: rdlowrey (profile)
Status: Closed Package: OpenSSL related
PHP Version: 5.5Git-2013-08-24 (Git) OS: Irrelevant
Private report: No CVE-ID: None
 [2013-08-24 14:05 UTC] 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).


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-16 03:27 UTC] rdlowrey@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: rdlowrey
 [2014-02-19 11:18 UTC] rdlowrey@php.net
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)
 [2014-02-19 11:18 UTC] rdlowrey@php.net
-Status: Verified +Status: Closed
 [2014-02-19 11:19 UTC] rdlowrey@php.net
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)
 [2014-02-19 22:58 UTC] ab@php.net
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)
 [2014-02-19 23:22 UTC] ab@php.net
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)
 [2014-02-27 01:45 UTC] tyrael@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC