I keep getting back a Braintree_Exception_SSLCertificate
exception when I try to generate a client token using Braintree_ClientToken::generate()
. I've got the SDK loaded and my PHP setup seems to meet the minimum requirements for the SDK.
The versions of PHP and cURL I'm running are:
PHP 5.5.3
cURL 7.32.0
with OpenSSL/1.0.1e
. SSL is enabled in my cURL module.
I noticed Braintree is enforcing TLS 1.2 so I thought that might be the issue but I tried adding the following line to Http.php in the Braintree SDK:
curl_setopt($curl, CURLOPT_SSLVERSION, 6);
This should set cURL to use TLS 1.2
but it didn't seem to help and I'm not sure how to verify that the setting even took effect.
I haven't managed to successfully place a request to Braintree's API yet so I'm worried this is something I'm doing wrong or maybe the version of cURL I'm using is no good. Is there anything I need to enable SSL that I've missed?
Thanks, Brad.