Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #39283 : SSL: fatal protocol error
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 15th August 19:31
php-bugs
External User
 
Posts: 1
Default #39283 : SSL: fatal protocol error


ID: 39283
Comment by: glamm at a-s-i dot com
Reported By: cboden at gmail dot com
Status: Assigned
Bug Type: SOAP related
Operating System: Linux
PHP Version: 5.2.0RC5
Assigned To: wez
New Comment:

Reproduced with PHP v5.2.5. The specific problem lies in the SSL
handling. This URL:

https://webservices.listrak.com/v31/IntegrationService.asmx?WSDL

fails, but when using an internal Apache reverse-proxy to "convert"
from SSL to cleartext the load works just fine.


Previous Comments:
------------------------------------------------------------------------

[2007-08-02 00:07:08] johnw at sus*** dot ac dot uk

I get this bug too,using fsockopen('ssl://...') followed by fgets()

I'm using PHP 5.2.1 on Solaris 9 using OpenSSL/0.9.7b.

If I call @fgets(...) my application seems to work but it would be
better if the bug was fixed properly!

The ssl server I'm connecting to is an IIS one.

------------------------------------------------------------------------

[2007-01-11 10:03:40] maboiteaspam at gmail dot com

Got the same problem with Apache and mod_ssl on Solaris 9.0.
SoapClient works well in http but fail when try to get the WSDL file in
https stream.

------------------------------------------------------------------------

[2006-12-25 14:48:52] dmitry@php.net

Wez, could you please look into this bug.
It is related to openssl streams and I cannot understand what the
following code.

case SSL_ERROR_SYSCALL:
if (ERR_peek_error() == 0) {
if (nr_bytes == 0) {
if (!is_http_stream_talking_to_iis(stream TSRMLS_CC)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: fatal
protocol error");


------------------------------------------------------------------------

[2006-11-03 18:00:34] cboden at gmail dot com

Now installed PHP-5.2.0
- No longer receive SoapFault (although, may have been an error in my
WSDL file originally)
- Sill receive "SSL: fatal protocol error" warning
- Able to suppress SoapClient::__construct to ignore (@)
- Besides the warning, working as expected, __getLast functions
generate expected results

------------------------------------------------------------------------

[2006-10-27 16:50:10] cboden at gmail dot com

Description:
------------
Soap fails to connect to the WSDL.

The server is an Apache-SSL server running on Linux (Note: Not Apache
using mod_ssl). I am using PHP (5.2.0RC7).
php5.2-200610260230.tar.bz2 is the build file.

Reproduce code:
---------------
<pre>
<?php
try {
$client = new SoapClient('https://localhost:443/wsdl.php',
Array(
'allow_self_signed' => 1,
'verify_peer' => 0,
'trace' => 1,
'exceptions' => 1,
));
} catch (Exception $e) {
die(print_r($e));
}
?>

Actual result:
--------------
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
SSL: fatal protocol error in /client.php on line 9

SoapFault Object

(

[messagerotected] => SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://localhost:443/wsdl.php'

[stringrivate] =>

[coderotected] => 0

[filerotected] => /client.php

[linerotected] => 9

[tracerivate] => Array

(

[0] => Array

(

[file] => /client.php

[line] => 9

[function] => SoapClient

[class] => SoapClient

[type] => ->

[args] => Array

(

[0] => https://localhost:443/wsdl.php

[1] => Array

(

[allow_self_signed] => 1

[verify_peer] => 0

[trace] => 1

[exceptions] => 1

)

)

)

)

[faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://localhost:443/wsdl.php'

[faultcode] => WSDL

)

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=39283&edit=1
  Reply With Quote


  sponsored links


2 25th August 19:01
External User
 
Posts: 1
Default #39283 : SSL: fatal protocol error


ID: 39283
Updated by: iliaa@php.net
Reported By: cboden at gmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: SOAP related
Operating System: Linux
PHP Version: 5.2.0RC5
Assigned To: wez
New Comment:

Please try using this CVS snapshot:

http://snaps.php.net/php5.3-latest.tar.gz

For Windows (zip):

http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

http://snaps.php.net/win32/php5.3-win32-installer-latest.msi


Previous Comments:
------------------------------------------------------------------------

[2007-12-03 22:25:48] glamm at a-s-i dot com

Reproduced with PHP v5.2.5. The specific problem lies in the SSL
handling. This URL:

https://webservices.listrak.com/v31/IntegrationService.asmx?WSDL

fails, but when using an internal Apache reverse-proxy to "convert"
from SSL to cleartext the load works just fine.

------------------------------------------------------------------------

[2007-08-02 00:07:08] johnw at sus*** dot ac dot uk

I get this bug too,using fsockopen('ssl://...') followed by fgets()

I'm using PHP 5.2.1 on Solaris 9 using OpenSSL/0.9.7b.

If I call @fgets(...) my application seems to work but it would be
better if the bug was fixed properly!

The ssl server I'm connecting to is an IIS one.

------------------------------------------------------------------------

[2007-01-11 10:03:40] maboiteaspam at gmail dot com

Got the same problem with Apache and mod_ssl on Solaris 9.0.
SoapClient works well in http but fail when try to get the WSDL file in
https stream.

------------------------------------------------------------------------

[2006-12-25 14:48:52] dmitry@php.net

Wez, could you please look into this bug.
It is related to openssl streams and I cannot understand what the
following code.

case SSL_ERROR_SYSCALL:
if (ERR_peek_error() == 0) {
if (nr_bytes == 0) {
if (!is_http_stream_talking_to_iis(stream TSRMLS_CC)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: fatal
protocol error");


------------------------------------------------------------------------

[2006-11-03 18:00:34] cboden at gmail dot com

Now installed PHP-5.2.0
- No longer receive SoapFault (although, may have been an error in my
WSDL file originally)
- Sill receive "SSL: fatal protocol error" warning
- Able to suppress SoapClient::__construct to ignore (@)
- Besides the warning, working as expected, __getLast functions
generate expected results

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39283

--
Edit this bug report at http://bugs.php.net/?id=39283&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666