title: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
body: <p><a href="https://stackoverflow.com/questions/26148701/file-get-contents-ssl-operation-failed-with-code-1-and-more">file_get_contents(): SSL operation failed with code 1. And more</a>
  This answer is not working with me.I have already try it. I don't have "certificate verify failed" issue.</p>
  
  <p>First all of I am new with server configuration.
  My issue is when I am using local-machine in which OpenSSl and ssl certificate is not installed....then my code upload image successfully on Facebook Via using Facebook SDK for PHP.</p>
  
  <p>But When I upload same code on Server where ssl enable and https working fine then my code showing me error :-</p>
  
  <pre><code> Warning: fopen(): SSL operation failed with code 1. OpenSSL Error messages:
  error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol 
  
  
  at ErrorHandler -&gt;handleError ('2', 'fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol', '/facebook/php-sdk-v4/src/Facebook/FileUpload/FacebookFile.php', '91', array())
  </code></pre>
  
  <p>I don't know what's going wrong. Is it any server configuration issue or anything else ?</p>
  
  <p>My machine PHP version is:- PHP 5.5.9-1ubuntu4.20 (cli)
  My server PHP version is :- PHP 5.6.11-1ubuntu3.4 (cli)</p>