WP_HTTP and CURLOPT_CAINFO
-
I have a need to be able to set CURLOPT_CAINFO on my WP_HTTP calls and I haven’t been able to find a filter that would let me set a specific curlopt using the WordPress HTTP library. I need to be able to set this:
curl_setopt($ch, CURLOPT_CAINFO, __DIR__ . “/DigiCertCA.crt”);
…because I hate having my customers turn off peer validation. Hoping to I don’t have go back to using cURL directly. Thoughts?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP_HTTP and CURLOPT_CAINFO’ is closed to new replies.