Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress Update problemDownload failed.: SSL certificate

Tags:

ssl

wordpress

I want to update my WordPress version to 4.0, right now it is WordPress 3.2.1.
When I try to update it, I am getting the below error:

Download failed.: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Installation Failed

What is the solution for it? Please help me to figure it out.

like image 719
Ketan Lathiya Avatar asked Dec 07 '22 00:12

Ketan Lathiya


1 Answers

I am able to resolve this issue by adding below code in functions.php of my theme folder.

add_action('http_request_args', 'jkudish_http_request_args', 10, 2);
function jkudish_http_request_args($args, $url) {
$args['sslverify'] = false;
return $args;
}

I hope this can help someone :)

like image 155
Ketan Lathiya Avatar answered Jan 15 '23 13:01

Ketan Lathiya