I wrote a script that uses our banks WSDL service, using Nusoap. Requests are signed with certificate. This script works fine on Ubuntu, Apache 2.2, PHP 5.4.
When trying to achieve same thing on Windows 7 (64-bit, Apache 2.2, PHP 5.4), I get this error thrown by Curl:
**SSL read: error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure, errno 0**
I have disabled firewall and antivirus. I can provide Curl option details, or any other piece of code or info. Thank you!
SOLUTION:
curl_setopt($this->ch, CURLOPT_SSLVERSION, 3);
To work with a SSL connections you have to enable the php_openssl.dll
in your php.ini
And when you work with curl a common problem is that the openssl module work with a wrong SSL version as default. Most times you should set the SSL version to 3.
curl_setopt($curl, CURLOPT_SSLVERSION,3);
I had the same problem before a few days.