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 Move WordPress From Root Directory to Subdirectory?

Sometimes you wish to install WordPress in root (wwwroot/public_html) directory, but you do want...

How To Fix An Error "The Uploaded file could not be moved to WP-Content/Uploads" folder?

Sometimes you receive following error while trying to upload new Media/Images to your WordsPress...

How to Change WordPress Admin Username through MySQL Database?

This article will provide you the step by step guidance on how to change the WordPress admin...

How to restore your WordPress website from backup?

This article describes step by step guidance on how to restore WordPress website from backup. You...

How to Leverage Browser Caching of WordPress Website via .htaccess?

If you've ever checked your WordPress website in Performance Tools such as Google PageSpeed...