Comment 29 for bug 592442

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 592442] Re: fopen fails on some SSL urls

Excerpts from chrone's message of Mon Apr 30 09:34:18 UTC 2012:
> i'm having the same problem here after upgrade from 11.10, my web server
> could not set email using curl and google mail smtp.
>
> i guess the culprit is either between php5-curl, curl, and openssl. :(
>
> is there a way to downgrade each curl and openssl version but still
> running on ubuntu 12.04 until this bug is fixed?
>
> here's the apache error log:
> PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /var/www/piwik.php on line 114
> PHP Warning: file_get_contents(): Failed to enable crypto in /var/www/piwik.php on line 114
>

You may want to try setting the cipher to use, as the issue seems to be
with a too-large header for some servers to handle.

http://php.net/manual/en/context.ssl.php

You can test what ciphers work with:

openssl s_client -connect server:port -cipher xxxxx

I'd recommend 'AES256' or 'AES128'