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.

cert

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.

3 Comments

 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: http://codeontrack.com/fix-wordpress-and-plugins-fail-on-update-ssl-certificate-problem-unable-to-get-local-issuer-certificate/

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

Leave a Comment

Your email address will not be published.