Bug #63352 [Com]: Can't enable hostname validation when using curl stream wrappers
| From: | geissert@php.net | Date: | Thu, 25 Oct 2012 00:58:38 +0000 |
| Subject: | Bug #63352 [Com]: Can't enable hostname validation when using curl stream wrappers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174276@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
Comment by: geissert@php.net
Reported by: geissert@php.net
Summary: Can't enable hostname validation when using curl
stream wrappers
Status: Open
Type: Bug
Package: cURL related
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
Of course this is a minor issue as the certificates store can't even be set, so
this is just for the record.
Previous Comments:
------------------------------------------------------------------------
[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