TLS encryption fails behind HTTP proxy
| Bug #67609 | TLS encryption fails behind HTTP proxy | ||||
|---|---|---|---|---|---|
| Submitted: | 2014-07-12 04:07 UTC | Modified: | 2014-07-12 15:19 UTC | ||
| From: | rdlowrey@php.net | Assigned: | rdlowrey (profile) | ||
| Status: | Closed | Package: | OpenSSL related | ||
| PHP Version: | 5.6.0RC2 | OS: | centos | ||
| Private report: | No | CVE-ID: | None | ||
[2014-07-12 04:07 UTC] rdlowrey@php.net
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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2014-07-12 04:18 UTC] rdlowrey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: rdlowrey
[2014-07-12 04:18 UTC] rdlowrey@php.net