Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created April 9, 2012 15:22
Show Gist options
  • Save kejyun/2344204 to your computer and use it in GitHub Desktop.
Save kejyun/2344204 to your computer and use it in GitHub Desktop.
AWS SDK SSL certificate problem solution 1
<?php
// =========== 前略 ===========
// Verification of the SSL cert
if ($this->ssl_verification)
{
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, false);
}
else
{
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, false);
}
// =========== 後略 ===========
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment