Posts

Showing posts with the label packagist

Composer Require 'package' throws OpenSSL error

Image
Clash Royale CLAN TAG #URR8PPP Composer Require 'package' throws OpenSSL error This problem seems to be common, and i've been through a lot of SO posts related to it and nothing works, and i'm going crazy. Setup : What Works : What does not work : Installing a package I cannot reach https://packagist.org/ with firefox (unsecure connection) The error i get with composer require : [ComposerDownloaderTransportException] The "https://packagist.org/packages.json" 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 php -r "var_dump(openssl_get_cert_locations());" Returns this : array(8) { ["default_cert_file"]=> string(25) "c:/usr/local/ssl/cert.pem" ["default_cert_file_env"]=> string(13) "SSL_CERT_FILE"...