This error indicates that your SSL certificate has either expired or is corrupted. I came across this error recently on a local WordPress installation and the solution is as follows:
- Download the latest cert.pem file from https://curl.haxx.se/docs/caextract.html
- Save this file (called cacert.pem) in your php installation directory
- Open php.ini in an editor and search for curl.cainfo
- If this exists and is commented out (‘;’ in front) delete the ‘;’ and add the full path to the cacert.pem file
- If this does not exist find [curl] in php.ini and add the line
curl.cainfo = “C:\Program Files (x86)\PHP\v5.5\cacert.pem” where the path is to your cacert.pem file. For example, my php.ini file looks like this
[curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. curl.cainfo = "X:\xampp\php\cacert.pem"
After you have done this restart your web server.
Your WordPress upgrade should work after this has been completed.