Re: [PHP] SSL issues

2011-03-22 Thread Richard Quadling
On 22 March 2011 01:21, Bostjan Skufca bost...@a2o.si wrote:
 Hi all,

 is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)?
 PHP 5.2.17 compiled identically on the same system with the same
 config file connects to remote SSL-enabled host just fine, whereas PHP
 5.3 (only tried .5 and .6) does not. Error message:

 Warning: stream_socket_client(): SSL operation failed with code 1.
 OpenSSL Error messages:
 error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert
 unexpected message
 Warning: stream_socket_client(): Failed to enable crypto

 Any ideas why this is happening?

 Thanks,
 b.

 PS: With all the best efforts towards ditching PHP 5.2 this is a real
 showstopper.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



I'm on Windows. Using 5-3-7-dev (my own build with php_openssl
statically built rather than as a shared extension).

php -d error_reporting=-1 -d display_errors=1 -r echo
file_get_contents('https://mail.google.com/mail');

and I get the correct content and no errors.

Can you try the above command?

Richard.

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] SSL issues

2011-03-22 Thread Bostjan Skufca
This works, but SSL-enabled socket connection does not. Will craft a
short script ASAP.

b.


On 22 March 2011 11:37, Richard Quadling rquadl...@gmail.com wrote:
 On 22 March 2011 01:21, Bostjan Skufca bost...@a2o.si wrote:
 Hi all,

 is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)?
 PHP 5.2.17 compiled identically on the same system with the same
 config file connects to remote SSL-enabled host just fine, whereas PHP
 5.3 (only tried .5 and .6) does not. Error message:

 Warning: stream_socket_client(): SSL operation failed with code 1.
 OpenSSL Error messages:
 error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert
 unexpected message
 Warning: stream_socket_client(): Failed to enable crypto

 Any ideas why this is happening?

 Thanks,
 b.

 PS: With all the best efforts towards ditching PHP 5.2 this is a real
 showstopper.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



 I'm on Windows. Using 5-3-7-dev (my own build with php_openssl
 statically built rather than as a shared extension).

 php -d error_reporting=-1 -d display_errors=1 -r echo
 file_get_contents('https://mail.google.com/mail');

 and I get the correct content and no errors.

 Can you try the above command?

 Richard.

 --
 Richard Quadling
 Twitter : EE : Zend
 @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] SSL issues

2011-03-22 Thread Bostjan Skufca
I just remembered, I had unrelated issue yesterday with php 5.3.6.
It is used as standalone socket server with SSL connections and it
suddenly stopped working, server was receiving gibberish instead of
XML requests. I nailed it down to stream_set_blocking() which was set
to false for various daemon-related purposes. And when it was changed
to true the functionality was restored.

b.


On 22 March 2011 13:14, Bostjan Skufca bost...@a2o.si wrote:
 Will be more verbose ASAP, openssl is 0.9.8r... Just checked,
 connection to mail.google.com works, seems this is an issue specific
 to one server.

 b.


 On 22 March 2011 12:53,  ja...@nixsecurity.org wrote:
 We've been using PHP 5.3.(5|6) since their released without any SSL issues. 
 We build PHP with OpenSSL (+FIPS), considering our product is in the real 
 world, we've had no complaints about connectivity issues via SSL. I compile 
 PHP with OpenSSL and the FIPS module frequently and haven't seen any of 
 these errors.

 When exactly are these errors occurring?
 What version of OpenSSL are you compiling against?

 Any additional information would be helpful.


 Original Message 
From: Bostjan Skufca bost...@a2o.si
To: php-general php-general@lists.php.net
Sent: Mon, Mar 21, 2011, 9:22 PM
Subject: [PHP] SSL issues

Hi all,

is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)?
PHP 5.2.17 compiled identically on the same system with the same
config file connects to remote SSL-enabled host just fine, whereas PHP
5.3 (only tried .5 and .6) does not. Error message:

Warning: stream_socket_client(): SSL operation failed with code 1.
OpenSSL Error messages:
error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert
unexpected message
Warning: stream_socket_client(): Failed to enable crypto

Any ideas why this is happening?

Thanks,
b.

PS: With all the best efforts towards ditching PHP 5.2 this is a real
showstopper.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] SSL issues

2011-03-21 Thread Bostjan Skufca
Hi all,

is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)?
PHP 5.2.17 compiled identically on the same system with the same
config file connects to remote SSL-enabled host just fine, whereas PHP
5.3 (only tried .5 and .6) does not. Error message:

Warning: stream_socket_client(): SSL operation failed with code 1.
OpenSSL Error messages:
error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert
unexpected message
Warning: stream_socket_client(): Failed to enable crypto

Any ideas why this is happening?

Thanks,
b.

PS: With all the best efforts towards ditching PHP 5.2 this is a real
showstopper.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php