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.

Revisions

  1. alexmcroberts created this gist Jun 3, 2015.
    3 changes: 3 additions & 0 deletions curlopt_set_ctr
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
    curl_setopt($ch, CURLOPT_CAINFO, '/Path/to/website.com.crt');