Extract cacert from Phar for cURL by schlessera · Pull Request #5777 · wp-cli/wp-cli
The Requests library already points to its own bundled certificates file in some instances. In case the library is also compiled into a Phar file, cURL will not be able to use the certificate, as it cannot read the file from within the Phar archive. We'll need to extract the file into a temporary location first for this to work properly.
This fixes the following issue observed during deployment runs:
