Hallo ich habe auf einer lokalen Windows umgebung ein Problem mit meinem Contao / Composer.
Ich konnte Anfang Mai noch auf 4.4.48 updaten. Doch heute hatte ich immer wieder folgendes Problem beim Installieren eine Erweiterung:
Code:
Checking HTTP proxy: FAIL
[Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
Die Umgebungsvariable für den Proxy ist gesetzt.
Openssl-location ist angegeben. Ich habe auch via https://curl.haxx.se/ca/cacert.pem
das Zertifikat heruntergeladen und unter C:\xampp\apache\bin\ als curl-ca-bundle.crt abgelegt (laut verschienen Beiträgen im Internet
Code:
D:\htdocs\contao>php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => C:\usr\local\ssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => C:\usr\local\ssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => C:\usr\local\ssl/private
[default_default_cert_area] => C:\usr\local\ssl
[ini_cafile] => C:\apache\bin\curl-ca-bundle.crt
[ini_capath] =>
)
in meiner php.ini
Code:
openssl.cafile="C:\apache\bin\curl-ca-bundle.crt"
Composer diagnose
Code:
Checking composer.json: WARNING
require.contao/conflicts : unbound version constraints (@dev) should be avoided
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: [Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy: FAIL
[Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy support for request_fulluri: OK
Checking HTTPS proxy support for request_fulluri: Unable to assess the situation, maybe github is down (The "https://api.github.com/repos/Seldaek/jsonlint/zipball/1.0.0" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy)
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
failed to open stream: Cannot connect to HTTPS server through proxy
Checking disk free space: OK
Checking pubkeys:
Lösung:
curl-ca-bundle.crt neu heruntergeladen und auf dem Server hinterlegt. Spezielle Freigaben des Proxy-Servers für github und packagist.org
Lesezeichen