Support » Plugin: WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage » Series of Issues: Error Fetching Buckets and other

  • 1. Installed plugin
    2. Created S3 Bucket and set to Public
    3. Created a User with a Policy with Access key ID/Secret Key
    4. Inserted Access/Secret in wp-config.php file
    5. Plugin response:

    There was an error attempting to check the permissions of the bucket xxx: Error executing “PutObject” on “xxx/as3cf-permission-check.txt”; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

    6. Plugin is posting incorrect Bucket region. Can’t change the region in plugin. Tried updating the Provider Bucket and received an error:

    Error Getting Bucket Region —There was an error attempting to get the region of the bucket xxx: Error executing “GetBucketLocation” on “https://s3.amazonaws.com/xxx?location”; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

    Not sure what to do at this point.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    Probably an issue with your server’s root certificates, likely out of date.

    Hello Ian,

    We are having an issue with extension as well:

    Error fetching buckets — Error executing “ListBuckets” on “https://s3.amazonaws.com/”; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

    Our WordPress is setup on IIS windows server with installed SSL certificate. We Tried everything possible and worked with AWS, they claim that this is extension that is not performing properly.

    is there a possible solution for this problem?

    Sincerely,
    Andrei

    Plugin Contributor ianmjones

    (@ianmjones)

    Hi @andreiaghenii, it’s likely down to the server’s CA Certificates not being up to date, not your SSL certificate.

    andreiaghenii

    (@andreiaghenii)

    Hello Ian,

    I would recommend to add this to your setup Article as it helped us to address the issue.

    https://www.bluevalleytech.com/techtalk/blog/error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate-when-running-php-under-windows-iis.aspx

    THE SOLUTION
    The solution is configure the PHP Curl extension with the proper certificate authority bundle so that it can verify the ssl certificate.

    You will need to verify that you have the proper certificate bundle in your PHP folder. We used the cacert.pem file from Mozilla, which you can get from here: https://curl.haxx.se/docs/caextract.html

    Place the file in your PHP folder located here: C:\Program Files\PHP\v7.2\extras\ssl\cacert.pem

    The PHP version / path may be different for your setup. Older versions are sometimes located in C:\Program Files (x86)\PHP\v5.6\ for example.

    Once you have verfied the ca bundle is there, you will need to edit your php.ini to tell CURL where to find the bundle.

    Edit your php.ini (ours was located: C:\Program Files\PHP\v7.2\php.ini ) and use Ctrl +F to serach for the following line:

    ;curl.cainfo =
    Change this line to containt your path for the ca bundle, like so:

    curl.cainfo = “C:\Program Files\PHP\v7.2\extras\ssl\cacert.pem”
    Don’t forget to un-comment the line (remove the ‘;’ at the beginning) and make sure you use quotes around the path if it contains spaces.

    Sincerely,
    Andrei

    Plugin Contributor ianmjones

    (@ianmjones)

    Thanks @andreiaghenii, that’s great info.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.