function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jsieversjsievers 

How to confirm cURL is using TLS 1.2: Posting to servlet.WebToLead rerouting to weakhttps page.

Hello,

My code works fine until I activate the upcoming TLS update. Then, it reroutes me to a Salesforce page weakhttps.jsp?l=1 with a "Stronger security is required" message. As far as I can tell TLS1.2 is active and working, but is there a way to check that cURL is using it?

This is running on Windows 7, iis. The relevant section of my code:
curl_setopt($ch, CURLOPT_SSLVERSION, 6);
curl_setopt($ch, CURLOPT_URL, "https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8");
curl_setopt($ch, CURLOPT_POST, count($kv));
curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);

 
jsieversjsievers
A few details:
cURL version 7.49.1
PHP 5.5
jsieversjsievers
Solved: upgraded to PHP version that supports cURL using TLS 1.2