Description
I've been trying to get connected for a couple days on the new 6.2.0, but after many "undefined methods" for ChatGPT suggestions I finally did this in my CurlHttpClient to change my peer and host curl options for my personal vendor file:
private function setSSL(&$curl_opt, $verifySSL){ //Brian Manually Trying to Disable for localhost 2.18.25 if (in_array($_SERVER['HTTP_HOST'], LOCAL_HOST)) { $verifySSL = 0; } //Brian moved verifyPeer true into the if($verifySSL) on 2.18.25 // $curl_opt[CURLOPT_SSL_VERIFYPEER] = true; if($verifySSL){ $curl_opt[CURLOPT_SSL_VERIFYPEER] = true; $curl_opt[CURLOPT_SSL_VERIFYHOST] = 2; //based on spec, if TLS 1.2 is supported, it will use the TLS 1.2 or latest version by default //$curl_opt[CURLOPT_SSLVERSION] = 6; $curl_opt[CURLOPT_CAINFO] = CoreConstants::getCertPath(); //Pem certification Key Path } else { // Brian added Verifypeer here on 2.18.25 $curl_opt[CURLOPT_SSL_VERIFYPEER] = false; $curl_opt[CURLOPT_SSL_VERIFYHOST] = 0; } }