#35668 [Fbk->Opn]: failed to create an SSL context / Stream
ID: 35668
User updated by: clemens at gutweiler dot net
Reported By: clemens at gutweiler dot net
-Status: Feedback
+Status: Open
Bug Type: OpenSSL related
Operating System: Linux
PHP Version: 5.1.1, 4.4.1
Assigned To: wez
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[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)