The error you see is incompatibility between the server you are connecting to and the SSL library that you use on your system.
Make sure the OpenSSL library you are using is not out of date. To verify this, you may need to contact your system administrator.
If the curl library uses the same SSL library, the proposed David Harris solution also does not work.
Alternatively, you can try explicitly TLS1, this sometimes works. I suggest first checking on the command line, for example. using curl command line version.
You can also take a look at the SSL context parameters in PHP Docs , which use the https:// wrapper (next to the HTTP Docs tags ).
hakre source share