I upgraded my Mac OS to OS X 10.9.
OS X 10.9/Apache 2.2.24/PHP 5.4.17
Now we get an error (Unknown SSL protocol error due to ...) when trying to connect to our remote server via cURL.
DEFINE("SSL_CERTTYPE", "PEM");
DEFINE("SSL_KEYPASS", "xxxxxxxxx");
DEFINE("SSL_CERT", $_SERVER['DOCUMENT_ROOT']."/certs/mycert.pem");
DEFINE("SSL_KEY", $_SERVER['DOCUMENT_ROOT']."/certs/mycert.key");
$options = array
(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_VERBOSE => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSLCERT => SSL_CERT,
CURLOPT_SSLKEY => SSL_KEY,
CURLOPT_SSLKEYPASSWD => SSL_KEYPASS,
CURLOPT_SSLCERTTYPE => SSL_CERTTYPE,
);
I tried setting SSLVERSION to both 2 and 3, but I still get the error.
Not sure if this is an Apache or PHP problem. Any guidance would be greatly appreciated. * It is also worth noting that this worked on 10.8 before the update.
source
share