laravel composer installation component Times error
php. / composer.phar install
- error message
- Installing laravel/framework (v5.1.46)
Loading from cache
- Installing guzzlehttp/guzzle (6.3.2)
Downloading: Failed
Downloading: Failed
Downloading: Failed
Failed to download guzzlehttp/guzzle from dist: The "https://files.phpcomposer.com/files/guzzle/guzzle/68d0ea14d5a3f42a20e87632a5f84931e2709c90.zip" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing guzzlehttp/guzzle (6.3.2)
Cloning 68d0ea14d5a3f42a20e87632a5f84931e2709c90
several projects have been used in this way before, and there is no such error
error:14090086:SSL routines::ssl3_get_server_certificate:certificate verify failed
then I follow this error to find
refer to this article: https://blog.csdn.net/w670328.
then this step still reports an error:
php -r "print_r(openssl_get_cert_locations());"
(
[default_cert_file] => /etc/pki/tls/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /etc/pki/tls/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /etc/pki/tls/private
[default_default_cert_area] => /etc/pki/tls
[ini_cafile] => /etc/pki/tls/cacert.pem
[ini_capath] =>
)
could it be a resource problem:
https://files.phpcomposer.com.
Open this resource in the browser
shows that the certificate has expired!
also emailed the packagist team, but didn"t get a reply! Do you have this problem?