Bug #63352 [Opn->Csd]: Can't enable hostname validation when using curl stream wrappers
| From: | pierrick@php.net | Date: | Sat, 22 Dec 2012 00:44:21 +0000 |
| Subject: | Bug #63352 [Opn->Csd]: Can't enable hostname validation when using curl stream wrappers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-175535@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63352&edit=1
ID: 63352
Updated by: pierrick@php.net
Reported by: geissert@php.net
Summary: Can't enable hostname validation when using curl
stream wrappers
-Status: Open
+Status: Closed
Type: Bug
Package: cURL related
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=php-src.git;a=commit;h=af10e698a24e0e624920ea4c4b72a2bc3c647cef
Log: Fixed bug #63352 (Can't enable hostname validation when using curl stream wrappers)
Previous Comments:
------------------------------------------------------------------------
[2012-10-25 00:58:38] geissert@php.net
Of course this is a minor issue as the certificates store can't even be set, so
this is just for the record.
------------------------------------------------------------------------
[2012-10-25 00:54:16] geissert@php.net
Description:
------------
When PHP is built with --with-curlwrappers, the context option
"curl_verify_ssl_host" sets curl's CURLOPT_SSL_VERIFYHOST option to 1, but there
is no way to set it to 2.
Given that the option is a boolean, it should probably be setting the VERIFYHOST
value to 2. There is no way to validate that the certificate belongs to the host
otherwise.
This applies to the ftps and https stream wrappers.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63352&edit=1