Hello. My development localhost installation of Backdrop CMS is suddenly failing to check for updates. The same site correctly checks for updates in the production server.
I'm using MAMP's Apache to serve localhost. The issue seems to be the call to:
stream_socket_client('ssl://updates.backdropcms.org:443')
to initiate a socket connection, within the function backdrop_http_request in common.inc. This call returns the following warning:
Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
And subsequently, backdrop_http_request returns a "Error opening socket ssl://updates.backdropcms.org:443" error.
The problem seems to be an error verifying a certificate (probably in my local environment?), but I don't know enough about certificates and MAMP to fix this issue. The strange thing is that Backdrop was checking updates just fine a few weeks ago.
Any clue or help will be really appreciated. Thanks!
I was FINALLY able to fix this issue! Typing the answer in hopes that it will help others.
The cacert.pem file provided by MAMP apparently was expired. I downloaded a new cacert.pem file from Mozilla and placed it inside the folder /Applications/MAMP/Library/OpenSSL/certs
That solved the issue!