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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sebastian@php.net
New email:
PHP Version: OS:

 

 [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: Sat Nov 23 08:01:28 2024 UTC