Title: Error executing &#8220;ListDistributions&#8221; on CloudFront.
Last modified: July 15, 2021

---

# Error executing “ListDistributions” on CloudFront.

 *  Resolved [jkd77](https://wordpress.org/support/users/jkd77/)
 * (@jkd77)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-error-executing-listdistributions-on-https-cloudfront/)
 * Hey Team – we are attempting to use the CDN > Configuration: Objects feature 
   to use CloudFront. After incorporating our credentials, we get the following 
   error:
 * Error: Error executing “ListDistributions” on “[https://cloudfront.amazonaws.com/2018-11-05/distribution&#8221](https://cloudfront.amazonaws.com/2018-11-05/distribution&#8221);;
   AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local issuer
   certificate (see [https://curl.haxx.se/libcurl/c/libcurl-errors.html](https://curl.haxx.se/libcurl/c/libcurl-errors.html))
 * Oddly, we are able to connect to our CloudFront distribution using another plugin
   called Amazon AWS CDN.
 * Thoughts? (Thanks in advance.) -Paul
    -  This topic was modified 4 years, 11 months ago by [jkd77](https://wordpress.org/support/users/jkd77/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-error-executing-listdistributions-on-https-cloudfront%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-error-executing-listdistributions-on-https-cloudfront/#post-14667730)
 * Hello [@jkd77](https://wordpress.org/support/users/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](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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/error-error-executing-listdistributions-on-https-cloudfront/#post-14667730)
 * Status: resolved