How To Fix An Error "SSL certificate problem: unable to get local issuer certificate"

This error can be encountered while upgrading WordPress or installing a WordPress plugin from the WordPress admin area.

ssl-error

Following is one of the solutions to fix this issue in windows server:

 

  1. Download cert.pem from the URL http://curl.haxx.se/docs/caextract.html

  2. Copy the cert.pem file to your php installation folder. Generally, the php.ini path should be C:\Program Files (x86)\PHP\vx.x\ so you will need to copy the cert.pem file to the same folder.

  3. Edit your php.ini file and add the following line under curl section.  Do not forget to replace the PHP path.
curl.cainfo = "C:\Program Files (x86)\PHP\vx.x\cacert.pem" 

SSL-certificate-problem-php-ini
  1. Save the php.ini file and restart the IIS. Run the following command to restart the IIS:
iisreset /restart

SSL-certificate-problem-iis-reset

Now, try to install a plugin or upgrade the WordPress and this should fix the issue.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to upload and use the custom logo in WordPress?

Adding a custom logo to your WordPress website gives it a personal touch and for the branding of...

Wordpress Login issue : Could not save password reset key to database.

For Wordpress admin account when you try to reset a lost password, You may get the error "Could...

How To Change Your WordPress URL from phpMyAdmin?

This article will describe how to change the WordPress website URL from phpMyAdmin. You might...

Comparison between Free WordPress Hosting and Paid WordPress Hosting

AccuWeb Hosting provides free WordPress hosting and fully managed WordPress Hosting plans. There...

How to fix Mixed Content Issue on WordPress?

Nowadays, most of the websites load with the https because of the SSL Installation. In some...