更新时间:2021-10-21 05:25:17
正如刚才杰里米·林德布洛姆在意见,为解决 AWS SDK V2 是设置实例的SDK时, ssl.certificate_authority
选项:
As mentioned by Jeremy Lindblom in the comments, the solution for AWS SDK v2 is to set the ssl.certificate_authority
option when instantiating the SDK:
$aws = Aws\Common\Aws::factory(array(
'region' => 'us-west-2',
'ssl.certificate_authority' => '/path/to/updated/cacert.pem'
));
http://docs.aws.amazon.com/aws-sdk-php/guide/latest/faq.html#what-do-i-do-about-a-curl-ssl-certificate-error
我要补充一点,这是在改变了的 AWS SDK V3 ,这里是新的方法:
I'll add that this was changed in the AWS SDK v3, here is the new method:
$client = new DynamoDbClient([
'region' => 'us-west-2',
'version' => 'latest',
'http' => [
'verify' => '/path/to/my/cert.pem'
]
]);
的http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html#verify