Created
April 9, 2012 15:22
-
-
Save kejyun/2344204 to your computer and use it in GitHub Desktop.
AWS SDK SSL certificate problem solution 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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