Skip to content

Happened Again - Requests to servers using letsencrypt's new root certificate fail verifiction #136787

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.62.1
  • OS Version: Windows_NT x64 10.0.18362

More details:

Version: 1.62.1 (user setup)
Commit: f4af3cb
Date: 2021-11-05T10:57:55.946Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.18362

Steps to Reproduce:

The same steps as the problems: #134244 and #134245.

Activity

  1. deepak1556 commented on Nov 9, 2021

    @deepak1556
    Collaborator

    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!

  2. added
    info-needed
    windows
    and removed on Nov 9, 2021
  3. AlencarGabriel commented on Nov 9, 2021

    @AlencarGabriel
    Author

    I made a minimal example using the GOT library that I use in my extension, and reproduced it as follows:

    got.get('https://letsencrypt.org').then((response: Response) => {
    		console.log(response.body);
    	}).catch((error: any) => {
    		console.error(error);
    	});

    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)
  4. deepak1556 commented on Nov 9, 2021

    @deepak1556
    Collaborator

    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

    Not sure why it is failing in your case.

  5. added
    electron
    upstream
    on Nov 9, 2021
  6. scottmollon-invicara commented on Nov 10, 2021

    @scottmollon-invicara

    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.

  7. alvarolb commented on Nov 11, 2021

    @alvarolb

    Same here on Windows 10. Linux version working fine.

    image

  8. 20 remaining items

  9. SchroederSteffen commented on Jan 28, 2022

    @SchroederSteffen

    I removed the expired DST Root CA X3 from the windows trust store and it solved the issue for me.
    (I didn't set http.systemCertificates: false).

    Windows will automatically refetch the cert, so removal isn't a option.

    Okay thanks for the clarification. 👍

  10. larshp commented on Feb 4, 2022

    @larshp
    Contributor

    Did not make it into the January release, hoping for February 🤩

  11. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Feb 8, 2022
  12. added this to the March 2022 milestone on Feb 24, 2022
  13. removed
    insiders-released
    on Feb 24, 2022
  14. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Mar 10, 2022
  15. larshp commented on Mar 31, 2022

    @larshp
    Contributor

    confirmed working in 1.66, thanks ❤️

  16. locked and limited conversation to collaborators on Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

confirmedelectronfixed-in-electron-16insiders-releasedupstreamwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions