How to Fix Curl TLS SSL Protocol Issue from CLI and PHP Code

Published by

The Geek Stuff posted How to Fix Curl TLS SSL Protocol Issue from CLI and PHP Code

A quote from the article:
Q: On one of our server, the webserver is not setup to support SSLv2 or SSLv3. Both are disabled on the server side. It supports only TLSv1. How can I get curl to work from both command line, and from inside my PHP code?

A: In most case, curl will automatically pick the correct protocol and connect to it. But, you can also specify a specific protocol to use for curl command. In this example, you have to instruct CURL to use TLSv1, as explained in this tutorial.
 How to Fix Curl TLS SSL Protocol Issue from CLI and PHP Code @ The Geek Stuff