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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 16:01:37 2025 UTC