fopen fails on some SSL urls
Binary package hint: php5
Description: Ubuntu 10.04 LTS
*** 5.3.2-1ubuntu4.2 0
For some reason I can't seem to get the following to work. I suspect a SSL problem. Maybe the intermediate SSL cert is not being recognized properly? The server cert is signed by geotrust (which is an intermediate of equifax).
I put the following in a file called /tmp/fopen.php:
Then I run the php via an apache web and/or via the php5-cli (the results are the same in both cases):
$ php /tmp/fopen.php
PHP Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages:
PHP Warning: fopen(): Failed to enable crypto in /tmp/fopen.php on line 3
PHP Warning: fopen(https:/
When I run the above command on a karmic or jaunty machine it works fine for both fopen() calls. I've attached a tcpdump of the above script.
As you can see from the dump, Google is working but my server is not. I get an SSL alert packet (packet #29) back with code 10
(unexpected message). Maybe this is an intermediate cert verification problem?
What is funny is that I get an ACK right before that. It seems like maybe the server is sending an ACK, client starts talking, server isn't ready and sends an out-of-order message.
|Changed in php5 (Ubuntu):|
|status:||Confirmed → In Progress|
|assignee:||nobody → Clint Byrum (clint-fewbar)|
|Changed in openssl (Ubuntu):|
|status:||In Progress → Confirmed|
|assignee:||Clint Byrum (clint-fewbar) → nobody|