markjaquith/WordPress-Skeleton

Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain

Opened this issue · 2 comments

Hi There,

I have this strange problem.
I am getting this error while installing a new plugin, while downloading and installing a new theme and while updating the WordPress( i am getting notification to update saying: "You are using a development version of WordPress. You can update to the latest nightly build automatically". Though the version is 4.9.6)

Error is: Installation failed: Download failed. cURL error 60: SSL certificate problem: self signed certificate in certificate chain

To fix the error few steps that i tried, but did not work:

  1. Downloaded the file cacert.pem and kept it in C:\MAMP\bin\php\php7.2.1\extras\ssl\cacert.pem
  2. In php.ini file, added code curl.cainfo = "C:\MAMP\bin\php\php7.2.1\extras\ssl\cacert.pem".

PFA screenshots for reference.

Please help!
image

image

updating worpress
Thank you,
Biswajit Kar

This can’t possibly have anything to do with this repo.

Opa, não sei se encontrou uma solução para o seu problema.

Caso não tenha.
Basta adicionar na ultima linha o bloco de comando abaixo em seu wp-config.php

/**

  • Don't verify SSL certificates
    */
    add_action( 'http_api_curl', function( $handle ) {
    curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, false );
    curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, false );
    });