Home  |  Linux  | Mysql  | PHP  | XML
From:Jerry Zhao Date:Thu May 14 21:33:43 2009
Subject:php ssl connection timeout issue
Hi,

I am having trouble connecting to https sites using php's builtin ssl
functions.
I tried:
file_get_contents('https://securesite')
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.

Regards,

Jerry.

Navigate in group php.install at sever news.php.net
Previous Next


Your recent visits
mysqli
Re: [PHP] pear for fedora 11
Re: [PHP-INSTALL] error instant client PHP configure script
Re: [PHP-INSTALL] error instant client PHP configure script
Re: [PHP-INSTALL] Building 5.2.12 w/MySQL on RedHat 64bit



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants