I am trying to install composer to prepare my Linux Drupal 7 server for migration to Drupal 9. I am following the instructions here: https://www.hostinger.com/tutorials/how-to-install-composer and I run the first command:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
…and I get the error:
PHP Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in Command line code on line 1 PHP Warning: copy(): Failed to enable crypto in Command line code on line 1 PHP Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
I tried installing a new cacert.pem file, that didn’t work. I am still getting the error. Please advise.