Bug #67609 [NEW]: TLS encryption fails behind HTTP proxy
| From: | rdlowrey@php.net | Date: | Sat, 12 Jul 2014 04:07:26 +0000 |
| Subject: | Bug #67609 [NEW]: TLS encryption fails behind HTTP proxy | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-186574@lists.php.net to get a copy of this message | ||
From: rdlowrey
Operating system: centos
PHP version: 5.6.0RC2
Package: OpenSSL related
Bug Type: Bug
Bug description:TLS encryption fails behind HTTP proxy
Description:
------------
Connection to encrypted resources from behind an HTTP proxy using
5.6.0RC2 always fails. The failure is unaffected by manually assigning
the appropriate SSL stream context options. This bug only manifests when
connecting via SSL/TLS through a proxy server and other use-cases are
unaffected.
Test script:
---------------
<?php
// Must have exported proxy environment vars, e.g.:
// export http_proxy=http://127.0.0.1:8888
// export https_proxy=$http_proxy
// fails :(
$html = file_get_contents('https://google.com');
var_dump(strlen($html));
Expected result:
----------------
int(%d)
Actual result:
--------------
SSL operation failed with code 1. OpenSSL Error messages:
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake
failure
--
Edit bug report at https://bugs.php.net/bug.php?id=67609&edit=1
--