Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jkd77

    Thank you for reaching out and I am happy to help!
    I’ve checked your website and I can see that it’s hosted on IIS.
    The reason we are getting this error is that the plugin is using PHP CURL extension to make a request to the Amazon CDN using HTTPS (SSL). The CURL extension does not trust the certificate and throws the error.

    The solution is to 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. You can use 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.4\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 verified 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, for example:

    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.

    Save the changes to php.ini and re-test. You may also have to restart PHP or reset IIS to make the changes take effect depending on your config.

    I hope this helps!
    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Error executing “ListDistributions” on CloudFront.’ is closed to new replies.