php - PayPal IPN OPENSSL error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure -


my current php version 5.3. have updated 5.2 5.3

i have searched in google can't find solution regarding paypal ipn validation.

i saw phpinfo() there enabled openssl still getting error message -

warning: fsockopen() [function.fsockopen]: ssl operation failed code 1. openssl error messages: error:14077410:ssl routines:ssl23_get_server_hello:sslv3 alert handshake failure in /home/xxx/public_html/paypal_test/socketopen.php on line 5  warning: fsockopen() [function.fsockopen]: failed enable crypto in /home/xxx/public_html/paypal_test/socketopen.php on line 5  warning: fsockopen() [function.fsockopen]: unable connect ssl://www.sandbox.paypal.com:443 (unknown error) in /home/xxx/public_html/paypal_test/socketopen.php on line 5 () 

my code -

<?php $fp = fsockopen ( 'ssl://www.sandbox.paypal.com', "443", $err_num, $err_str, 60); if (!$fp) {     echo "$errstr ($errno)<br />\n"; } else {     $out = "get / http/1.1\r\n";     $out .= "host: www.sandbox.paypal.com\r\n";     $out .= "connection: close\r\n\r\n";     fwrite($fp, $out);     while (!feof($fp)) {         echo fgets($fp, 128);         echo "<br>";     }     fclose($fp); } ?> 

i have used same code in different server code working fine. not working in own server. please check below 2 screenshot-

actual output - enter image description here

my output - enter image description here

i read php-paypal-error: 14077410:ssl routines:ssl23_get_server_hello:sslv3 alert handshake failure not getting exact solution that. please check , let me know.

thank you.

according ssllabs server supports tls 1.2, i.e. no tls 1.1, tls 1.0 or ssl 3.0.

my current php version 5.3. have updated 5.2 5.3

given using old version of php chances high using older version of openssl. necessary support tls 1.2 added openssl version 1.0.1. find out version using might use

 php -r 'printf("0x%x\n", openssl_version_number);' 

this should return @ least 0x10001000 (i.e. version 1.0.1). below has no support tls 1.2.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -