title: stream_socket_enable_crypto alternative or similar solution
body: <p>I'm running a script on my site that connects to Facebook, It was working fine until my server updated Centos with a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1022468" rel="nofollow noreferrer">buggy version of Openssl</a>.
  My problem is that until Redhat release a new version I'm stuck with this bug.</p>
  
  <p>This is my script how actually run:</p>
  
  <pre><code>  if( !stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT))
    {
  
      throw new Exception('stream_socket_enable_crypto failed');
  
    }
  </code></pre>
  
  <p>Obviously now it fails all the time with the following error:</p>
  
  <pre><code>PHP Warning:  stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
  error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
  error:1408D010:SSL routines:SSL3_GET_KEY_EXCHANGE:EC lib
  </code></pre>
  
  <p>So there is any other alternative to enable crypto on the resource such as curl or something similar. How can I fix this?</p>