w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
AWS SSL security error : [curl] 60: SSL certificate prob...: unable to get local issuer certificate

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 =
    'region' => 'us-west-2',
    'ssl.certificate_authority' => '/path/to/updated/cacert.pem'


I'll add that this was changed in the AWS SDK v3, here is the new method:

$client = new
    'region'  => 'us-west-2',
    'version' => 'latest',
    'http'    => [
        'verify' => '/path/to/my/cert.pem'


© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.