curl error 77

CURL ERROR 77 | While Updating WordPress Plugin

I was trying to update plugins on my WordPress site but the Curl Error 77 ugly ass error popped up. It also showed when I tried to add a new plugin to the website.

Warning: An unexpected error occurred. Something may be wrong with or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to Please contact your server administrator.) in …/ on line 388


I have tried over dozen solution I found on the internet to fix this problem but none worked. One site pointed out that it may be a problem with the ca-bundle.crt file. It is an SSL Certificate file which WordPress uses as default for secure connections (https) when WordPress make request using HTTP API.

ca-bundle.crt file is located in wp-includes/certificates/


In my case when I opened the ca-bundle.crt file it was empty! It probably got corrupted when I moved my site to a new host. To fix the Curl Error 77 you need to replace this file with a valid copy. You may download the whole WordPress package and extract it or you can get some old site backup and extract it from there. The last option is to download it from the link below!


Leave a Reply

Your email address will not be published. Required fields are marked *