Skip to content

Instantly share code, notes, and snippets.

@kejyun
Created April 9, 2012 15:33
Show Gist options
  • Save kejyun/2344275 to your computer and use it in GitHub Desktop.
Save kejyun/2344275 to your computer and use it in GitHub Desktop.
AWS SDK SSL certificate problem solution 2
<?php
error_reporting(-1);
header("Content-type: text/plain; charset=utf-8");
require_once "aws-sdk-for-php/sdk.class.php";
$s3 = new AmazonS3();
//********** 多加這一行 **********
$s3->ssl_verification=false;
//********** 多加這一行 **********
$response = $s3->list_buckets();
print_r($response);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment