CURL -Fehler 60 beim Herunterladen https://repo.packagist.org/packages.json: SSL -Zertifikat
Problem: Nicht in der Lage, ein lokales Emittentenzertifikat zu erhalten,
Was ich ausprobiert habe (ohne Erfolg): < /p>
- Deaktivieren von Anti -Viren (Vorbehalt: Siehe Antwort) < /li>
Herunterladen der neuesten Cacert - .pem und wechseln Sie php.ini in den Ort mit dem Zertifikat (curl.cainfo und openSSL.cafile). < /li>
Composer-Version aktualisieren Composer config.json und dann funktionierte es) - Die neueste Windows-Update entfernt
- Composer Selfdate-Update-Keys
Code: Select all
composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: No git process found
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] curl error 60 while downloading https://api.github.com/rate_limit: SSL certificate problem: unable to get local issuer certificate
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: ***
Dev Public Key Fingerprint: ***
OK
Checking Composer version: FAIL
[Composer\Downloader\TransportException] curl error 60 while downloading https://getcomposer.org/versions: SSL certificate problem: unable to get local issuer certificate
Checking Composer and its dependencies for vulnerabilities: Failed performing audit: curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem: unable to get local issuer certificate
Composer version: 2.8.5
PHP version: 8.3.17
PHP binary path: C:\PHP\php.exe
OpenSSL version: OpenSSL 3.0.15 3 Sep 2024
curl version: 8.7.0-DEV libz 1.2.12 ssl OpenSSL/3.0.15
zip: extension present, unzip not available, 7-Zip not available
Gehen Sie zu https://curl.se/docs/caextract.html < /li>
Download Cacert.pem < /li>
Hochgeladene Aufmerksamkeit von Composer config.php < /li>
So überprüfen Sie die Hash Ich habe diese Zeile zu einer PHP -Datei hinzugefügt: echo Hash_file ('SHA256', 'example.txt', false); LI> dass Hash nicht mit dem Hash im heruntergeladenen Zertifikat oder dem "hier ist der SHA256Sum der aktuellen PEM -Datei" -Link < /li>
< /ul>
Hash in heruntergeladenem Cacert übereinstimmt. PEM -> SHA256: *** D3ACA3C05C566D8DC98E116
Hash in PHP -Datei -> *** B934CA495991B7852B855
.SE/CA/CACERT.PEM.SHA256 -> *** 90425D7DA901A11531B3AA5