5 Comments

AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate

In Yii Framework trying to use AWS bucket to upload images and getting error: 

AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate

Solution:

To solve  the above error you have use ssl certificate to transfer the data securely. 

I have resolved it by using http method this is not secure.

To use secure way enter  below line in your php.ini file :

curl.cainfo = “/path/to/file.cacert.pem”

 

‘options’ => [
‘scheme’ => ‘http’,
],

Complete Example Code without http method:

https://github.com/frostealth/yii2-aws-s3/tree/1.x
// …
‘s3bucket’ => [
‘class’ => \frostealth\yii2\aws\s3\Storage::className(),
‘region’ => ‘ap-southeast-2’,
‘credentials’ => [ // Aws\Credentials\CredentialsInterface|array|callable
‘key’ => ‘JGUTEHCDE………….OSHS’,
‘secret’ => ‘SJEUC———–jzy1—–rrT’,
],
‘bucket’ => ‘yours3bucket’,
//’cdnHostname’ => ‘http://example.cloudfront.net’,
‘defaultAcl’ => \frostealth\yii2\aws\s3\Storage::ACL_PUBLIC_READ,
‘debug’ => false, // bool|array
‘options’ => [
‘scheme’ => ‘http’,
],

],
// …

More regarding AWS SDK with Yii Framework Please go throuhg http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html#verify

http://docs.aws.amazon.com/aws-sdk-php/guide/latest/faq.html#what-do-i-do-about-a-curl-ssl-certificate-error

5 comments on “AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate

  1. Thanks for the excellent advice, it really is useful.

  2. Great line up. We will be linking to this
    excellent post on our website. Keep up the good writing.

  3. Hi there! This post couldn’t be written any better!
    Reading through this post reminds me of my previous room mate!
    He always kept talking about this. I ‘ll forward this article to him.
    Pretty certain he will have a good read. Thank you for sharing!

  4. Thank you for the effort, keep up the great work Great work.

  5. I couldn’t refrain from commenting. Very well written!

Leave a Reply

Your email address will not be published. Required fields are marked *