title: PayPal IPN OPENSSL error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
body: <p>My Current PHP version is 5.3. Recently I have updated it 5.2 to 5.3</p>
  
  <p>I have searched in google I can't find any solution regarding the PayPal IPN validation.</p>
  
  <p>I saw my <code>phpinfo()</code> there are enabled OPenSSL but still I am getting this error message - </p>
  
  <pre><code>Warning: fsockopen() [function.fsockopen]: SSL operation failed with 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 to enable crypto in /home/xxx/public_html/paypal_test/socketopen.php on line 5
  
  Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.sandbox.paypal.com:443 (Unknown error) in /home/xxx/public_html/paypal_test/socketopen.php on line 5
  ()
  </code></pre>
  
  <p>My Code is - </p>
  
  <pre><code>&lt;?php
  $fp = fsockopen ( 'ssl://www.sandbox.paypal.com', "443", $err_num, $err_str, 60);
  if (!$fp) {
      echo "$errstr ($errno)&lt;br /&gt;\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 "&lt;br&gt;";
      }
      fclose($fp);
  }
  ?&gt;
  </code></pre>
  
  <p>I have used same code in different server this code is working fine. But this is not working in my own server. Please check below two screenshot- </p>
  
  <p>Actual Output - 
  <a href="https://i.stack.imgur.com/yZ8rO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yZ8rO.jpg" alt="enter image description here"></a></p>
  
  <p>My output - 
  <a href="https://i.stack.imgur.com/SdcnI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SdcnI.jpg" alt="enter image description here"></a></p>
  
  <p>I read <a href="https://stackoverflow.com/questions/34926940/php-paypal-error-14077410ssl-routinesssl23-get-server-hellosslv3-alert-hands">php-paypal-error: 14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure</a> But not getting any exact solution for that. Please check and let me know.</p>
  
  <p>Thank you.</p>