I cannot update my projects anymore via composer. 3 days ago out of the blue this error occurred:
curl error 60 while downloading .json: SSL certificate problem: unable to get local issuer certificate
I can update composer when "disable-tls" is set to True, but "composer update" still gives error above.
On my laptop and and other (windows 11) computers the curl command
curl
gives error
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012)
So i assume curl is the problem, something with finding the certificate.
On my second computer there is no PHP or something like that, so it really is a windows 11/curl problem.
Also important to know, is that on my old windows 10 laptop the problem is not there!
How to get curl reading the certificate?
I cannot update my projects anymore via composer. 3 days ago out of the blue this error occurred:
curl error 60 while downloading https://repo.packagist./packages.json: SSL certificate problem: unable to get local issuer certificate
I can update composer when "disable-tls" is set to True, but "composer update" still gives error above.
On my laptop and and other (windows 11) computers the curl command
curl https://maintenanceplus.nl
gives error
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012)
So i assume curl is the problem, something with finding the certificate.
On my second computer there is no PHP or something like that, so it really is a windows 11/curl problem.
Also important to know, is that on my old windows 10 laptop the problem is not there!
How to get curl reading the certificate?
Share Improve this question asked Feb 16 at 15:42 Jilco TigchelaarJilco Tigchelaar 2,1898 gold badges32 silver badges55 bronze badges 1- 1 This question is similar to: All HTTPS connections outside of browser fail with "SSL certificate problem: unable to get local issuer certificate". If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. – hakre Commented Feb 17 at 8:08
1 Answer
Reset to default 1Thanks to this i got the answer!
All HTTPS connections outside of browser fail with "SSL certificate problem: unable to get local issuer certificate"
I am using Norton Antivirus, and I disabled the "HTTPS Scanning" option within the "Safe Web" feature.
This prevented the original curl error 60 in composer.
For reference: https://curl.se/libcurl/c/libcurl-errors.html#CURLESSLCONNECTERROR
CURLE_SSL_CONNECT_ERROR (35)
A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths, permissions), passwords, and others.
https://curl.se/libcurl/c/libcurl-errors.html#CURLEPEERFAILEDVERIFICATION
CURLE_PEER_FAILED_VERIFICATION (60)
The remote server's SSL certificate or SSH fingerprint was deemed not OK.