php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41087 failed to create an SSL context
Submitted: 2007-04-14 20:46 UTC Modified: 2007-04-14 21:32 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: mb at insidetheweb dot de Assigned:
Status: Not a bug Package: OpenSSL related
PHP Version: 4.4.6 OS: Ubuntu 6.0.6LTS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mb at insidetheweb dot de
New email:
PHP Version: OS:

 

 [2007-04-14 20:46 UTC] mb at insidetheweb dot de
Description:
------------
No matter what i tried, i cannot establish a connection with ssl.

I always get these errors:

1.) php_stream_sock_ssl_activate_with_method: failed to create an SSL context 

1.) Unable to activate SSL mode in **** (file_get_contents) OR failed to activate SSL mode 1 (fsockopen)



Reproduce code:
---------------
echo file_get_contents( 'https://api-3t.paypal.com' );

or

$fp = fsockopen ('ssl://api-3t.paypal.com', 443, $errno, $errstr, 30);

Expected result:
----------------
Some output...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-14 20:57 UTC] tony2001@php.net
Broken OpenSSL installation might be the reason.
OpenSSL function fails - there is not much we can do about it.
 [2007-04-14 21:32 UTC] mb at insidetheweb dot de
"Broken OpenSSL installation" 
=> impossible.

First try:
http://packages.ubuntu.com/dapper/libdevel/libssl-dev

Second / Third try..
0.9.8e and 0.9.7m from source.

It is nearly impossible to break a installation which includes 3 commands...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC