Skip to content

Instantly share code, notes, and snippets.

@alexmcroberts
Created June 3, 2015 21:57
Show Gist options
  • Save alexmcroberts/08b2e83bf38e97f8a4bc to your computer and use it in GitHub Desktop.
Save alexmcroberts/08b2e83bf38e97f8a4bc to your computer and use it in GitHub Desktop.
adding a crt to curl php
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_CAINFO, '/Path/to/website.com.crt');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment