Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WORDPRESS : cURL error 60: SSL certificate

I'm currently building a Wordpress install under a debian server. I install PHP7, curl and Apache2

While I'm trying to install new extension I have this error message :

cURL error 60: SSL certificate problem: self signed certificate in certificate chain

I try to modify the php.ini with this, after reading some post treating similar issue :

curl.cainfo = /etc/php7.0/cacert.pem

But I'm still facing the problem even with restart apache.

Any ideas ?

Thanks in advance

like image 425
Nathan30 Avatar asked Nov 29 '22 22:11

Nathan30


1 Answers

Disable SSL verification within your testing site.

You can do this by adding this line into the file

Appearance > Theme Editor > functions.php or

/wp-content/themes/YOUR_THEME/functions.php:

add_filter('https_ssl_verify', '__return_false');

Only add this on a testing site, never on a live site.

like image 80
arasif Avatar answered Dec 05 '22 19:12

arasif