I tried different combination of ssl clients and servers, it all points to
problems on the client side of my new php build. The same code worked on an
older php build.
On Thu, May 14, 2009 at 4:57 PM, Nathan Rixham <nrix...@gmail.com> wrote:
> Jerry Zhao wrote:
>> I am having trouble connecting to https sites using php's builtin ssl
>> I tried:
>> fsockopen('ssl://securesite', 443, $errno, $errstr,20)
>> and same errors every time:
>> SSL: connection timeout
>> Failed to enable crypto
>> Call to openssl_error_string() returns no error.
>> Curl worked both within php and as standalone client.
>> The strange thing is that the connection seemed to be dropped immediately
>> upon contact with the server, i.e., the call to the above functions failed
>> immediately, which I think contradicts the "timeout" error.
>> Any tips on the cause of this issue or how to debug this is appreciated.
> assuming you've checked for mod_ssl and tried connecting up to an ssl
> server you know works fine?
> then check for bad ssl certificates on the remote server.