Bug #52913 [Com]: Incorrect SNI (Server name indicator) when using a SoapClient through a proxy
| From: | daniel dot buschke at nextiraone dot eu | Date: | Tue, 26 Jun 2012 16:58:32 +0000 |
| Subject: | Bug #52913 [Com]: Incorrect SNI (Server name indicator) when using a SoapClient through a proxy | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171545@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52913&edit=1
ID: 52913
Comment by: daniel dot buschke at nextiraone dot eu
Reported by: terje dot gjerde at visma dot no
Summary: Incorrect SNI (Server name indicator) when using a
SoapClient through a proxy
Status: Open
Type: Bug
Package: OpenSSL related
Operating System: Windows Server 2008 r2
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
Workaround:
Locallly override APACHESERVER with the IP of PROXY in hosts file and set APACHESERVER as
$config['proxy_host']. This is very ugly but works (for us).
cheers
Daniel
Previous Comments:
------------------------------------------------------------------------
[2010-09-23 16:23:51] terje dot gjerde at visma dot no
Description:
------------
When calling a url on apache server with name "APACHESERVER" through a proxy with name
"PROXY" the following error occurs:
Hostname PROXY provided via SNI and hostname APACHESERVER provided via HTTP are different
ie calling url:
https://APACHESERVER/ws.php
with proxy at:
http://PROXY:8080/
Test script:
---------------
$config = array('location' => WEBSERVICE_LOCATION,
'classmap' => $wsclassmap,
'trace' => 1,
);
if (WEBSERVICE_PROXY_HOST && WEBSERVICE_PROXY_PORT) {
$config['proxy_host'] = WEBSERVICE_PROXY_HOST;
$config['proxy_port'] = WEBSERVICE_PROXY_PORT;
}
$ws_client = new SoapClient($wsdl,$config);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=52913&edit=1