Bug #43151 [Opn->Csd]: [peer_certificate_chain] => HTTP/1.1 200 OK
| From: | felipe@php.net | Date: | Wed, 16 Nov 2011 12:55:01 +0000 |
| Subject: | Bug #43151 [Opn->Csd]: [peer_certificate_chain] => HTTP/1.1 200 OK | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165230@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=43151&edit=1
ID: 43151
Updated by: felipe@php.net
Reported by: p dot vanbrouwershaven at networking4all dot com
Summary: [peer_certificate_chain] => HTTP/1.1 200 OK
-Status: Open
+Status: Closed
Type: Bug
Package: OpenSSL related
Operating System: Linux
PHP Version: 5.2CVS-2008-07-21
-Assigned To:
+Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
This issue seems already fixed in the source.
Previous Comments:
------------------------------------------------------------------------
[2008-07-21 12:41:57] p dot vanbrouwershaven at networking4all dot com
I tried with version php5.2-200807211030 (PHP 5.2.7-dev) but the result is still:
"[peer_certificate_chain] => HTTP/1.1 200 OK"
[ssl] => Array
(
[capture_peer_cert] => 1
[peer_certificate] => Resource id #4
[capture_peer_cert_chain] => 1
[peer_certificate_chain] => HTTP/1.1 200 OK
)
------------------------------------------------------------------------
[2007-10-30 21:30:26] p dot vanbrouwershaven at networking4all dot com
Description:
------------
peer_certificate_chain returns "HTTP/1.1 200 OK"
Reproduce code:
---------------
$opts = array(
'ssl' => array(
'capture_peer_cert' => true,
'peer_certificate' => true,
'capture_peer_cert_chain' => true
)
);
$context = stream_context_create($opts);
$fp = fopen($url, 'rb', false, $context);
$meta = stream_get_meta_data($fp);
$options = stream_context_get_options($fp);
fclose($fp);
print_r($options);
Expected result:
----------------
[ssl] => Array
(
[capture_peer_cert] => 1
[peer_certificate] => Resource id #28
[capture_peer_cert_chain] => 1
[peer_certificate_chain] => Resource id #**
)
Actual result:
--------------
[ssl] => Array
(
[capture_peer_cert] => 1
[peer_certificate] => Resource id #28
[capture_peer_cert_chain] => 1
[peer_certificate_chain] => HTTP/1.1 200 OK
)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=43151&edit=1