You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Happened Again - Requests to servers using letsencrypt's new root certificate fail verifiction #136787
confirmedIssue has been confirmed by VS Code Team memberelectronIssues and items related to Electronfixed-in-electron-16Issues fixed with Electron 16.x updateinsiders-releasedPatch has been released in VS Code InsidersupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues
Reacted by Christian Sahlmann, Gabriel Alencar, Ivar Nesje, Steffen Lorang Ekeberg, Alvaro Luis Bustamante, Andrey Bronnikov, Ahmadali Shafiee, Thierry M., Lars Hvam, Iván Chicano and 18 more
I downgraded the VSCode version to 1.61.2 and it works. When upgrading to 1.62.1 it returns to having certificate errors:
GotError: certificate has expired at onError (c:\Users\gabriel.alencar\Documents\Gitea\vscode-engpro-extension\node_modules\got\dist\source\request-as-event-emitter.js:140:29) at handleRequest (c:\Users\gabriel.alencar\Documents\Gitea\vscode-engpro-extension\node_modules\got\dist\source\request-as-event-emitter.js:173:17) at processTicksAndRejections (internal/process/task_queues.js:93:5) at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:932:8) at TLSWrap.onhandshakedone (_tls_wrap.js:706:12) at TLSWrap.callbackTrampoline (internal/async_hooks.js:131:14)
I am unable to repro on macOS will check on windows,
1.62.1 was updated to Electron 13.5.2 and previous versions were using Electron 13.5.1. There is a difference in the fix between these two versions.
13.5.1 adds X509_V_FLAG_TRUSTED_FIRST to the openSSL verification api used by Node.js network code which will construct the certificate chain during verification with trusted certificates from the bundle. electron/electron#31215
13.5.2 undo the above change and instead removes the expired DST Root CA X3 from the bundled trust store, because the alternative trust ISRG Root X1 is already present in the bundle. electron/electron#31220
I am also seeing the same issue on Windows. It popped up as soon as vscode upgraded to 1.62.1. My extension can't make any api calls because of it. My coworker on a Mac also cannot reproduce the issue.
confirmedIssue has been confirmed by VS Code Team memberelectronIssues and items related to Electronfixed-in-electron-16Issues fixed with Electron 16.x updateinsiders-releasedPatch has been released in VS Code InsidersupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues
Activity
deepak1556 commentedon Nov 9, 2021
I am unable to repro with
1.62.1, added the sample from #134244 to a minimal extension and didn't see the error triggered.Can you provide some minimal repro steps, thanks!
AlencarGabriel commentedon Nov 9, 2021
I made a minimal example using the GOT library that I use in my extension, and reproduced it as follows:
I downgraded the VSCode version to 1.61.2 and it works. When upgrading to 1.62.1 it returns to having certificate errors:
deepak1556 commentedon Nov 9, 2021
I am unable to repro on macOS will check on windows,
1.62.1was updated to Electron13.5.2and previous versions were using Electron13.5.1. There is a difference in the fix between these two versions.13.5.1addsX509_V_FLAG_TRUSTED_FIRSTto the openSSL verification api used by Node.js network code which will construct the certificate chain during verification with trusted certificates from the bundle. electron/electron#3121513.5.2undo the above change and instead removes the expiredDST Root CA X3from the bundled trust store, because the alternative trustISRG Root X1is already present in the bundle. electron/electron#31220Not sure why it is failing in your case.
scottmollon-invicara commentedon Nov 10, 2021
I am also seeing the same issue on Windows. It popped up as soon as vscode upgraded to 1.62.1. My extension can't make any api calls because of it. My coworker on a Mac also cannot reproduce the issue.
alvarolb commentedon Nov 11, 2021
Same here on Windows 10. Linux version working fine.
20 remaining items
SchroederSteffen commentedon Jan 28, 2022
Okay thanks for the clarification. 👍
larshp commentedon Feb 4, 2022
Did not make it into the January release, hoping for February 🤩
larshp commentedon Mar 31, 2022
confirmed working in 1.66, thanks ❤️