#35668 [Asn->Fbk]: failed to create an SSL context / Stream (works with PHP 5.1)
ID: 35668
Updated by: pajoye@php.net
Reported By: clemens at gutweiler dot net
-Status: Assigned
+Status: Feedback
Bug Type: OpenSSL related
Operating System: Linux
PHP Version: 4CVS-2005-12-14 (snap)
Assigned To: wez
New Comment:
Do you use debian? or can you reproduce this problem with a recent php
version (5.1 or 5.2, 4.x will not get fixed)?
Previous Comments:
------------------------------------------------------------------------
[2005-12-14 18:13:17] clemens at gutweiler dot net
With the latest 5.1 Snap (5.1-200512141530) this works great.
I use debian, but a self-compiled openssl-0.9.8a and not the
distribution package.
Is there a chance to get this fixed in the 4_4 branch too?
------------------------------------------------------------------------
[2005-12-14 17:44:13] sniper@php.net
Also, if you're using Debian, this is bogus. There's a problem with
Debian's OpenSSL 0.9.8a packages.
------------------------------------------------------------------------
[2005-12-14 17:42:46] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-14 17:13:46] clemens at gutweiler dot net
Description:
------------
unable to use https connections via stream
Reproduce code:
---------------
<?php
echo file_get_contents( 'https://ssl.example.com' );
?>
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8a 11 Oct 2005
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib
Fails with PHP 4.4.1, 5.1.1 and CVS PHP_4_4.
Actual result:
--------------
Warning: file_get_contents(): php_stream_sock_ssl_activate_with_method:
failed to create an SSL context
Warning: file_get_contents(https://ssl.example.com): failed to open
stream: Unable to activate SSL mode
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35668&edit=1
Thread (9 messages)