php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35668 failed to create an SSL context / Stream (works with PHP 5.1)
Submitted: 2005-12-14 17:13 UTC Modified: 2006-08-15 19:58 UTC
Votes:10
Avg. Score:4.3 ± 0.9
Reproduced:9 of 9 (100.0%)
Same Version:7 (77.8%)
Same OS:7 (77.8%)
From: clemens at gutweiler dot net Assigned: wez (profile)
Status: Wont fix Package: OpenSSL related
PHP Version: 4CVS-2005-12-14 (snap) OS: Linux
Private report: No CVE-ID: None
 [2005-12-14 17:13 UTC] 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 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-14 17:42 UTC] 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:44 UTC] 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 18:13 UTC] 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?
 [2006-08-14 17:41 UTC] pajoye@php.net
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)?
 [2006-08-15 07:14 UTC] clemens at gutweiler dot net
5.x works, 4.4.x not.

this is a debian distribution, but openssl is build from the 
official sources, i do not use the openssl deb-package.
 [2006-08-15 19:58 UTC] pajoye@php.net
Please upgrade. PHP 4.x is only for security fixes.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 19 02:01:28 2024 UTC