How to fix – WordPress Upgrade Download failed. SSL certificate problem: unable to get local issuer certificate

Getting this error when trying to upgrade WordPress?

Download failed.: SSL certificate problem: unable to get local issuer certificate

Do this.

1. Download?the cert.pem file from here. Right click on the link and click save link as.


2. Place the cert.pem file in your php folder.
IE:?C:\Program Files (x86)\PHP\v5.5\cacert.pem

3. Edit the php.ini and search for “curl”. Edit the curl.cainfo line with the following.
curl.cainfo = “C:\Program Files (x86)\PHP\v5.5\cacert.pem”
Save the php.ini file.

php ini

4.?Now try your upgrade again. I didn’t have any issues after performing those steps.


 Add your comment
  1. This fixed my problem perfectly! I had a very old WordPress installation I had to upgrade and this was the issue. Thank you!

  2. Ah super. This is a better solution than what I came across myself. This is actually fixing the issue that many people have in Xammp and similar solutions.

    My quickfix for WordPress might also make sense in some situations though:

  3. Yup it fixed it, thank you very much!!

  4. Thanks – fixed my problem 🙂 wish i found this, before I spend half a day trying to fix it..

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.