Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json-language-features is attempting to use expired certificates when valid certificates are available #162828

Open
ccopsey opened this issue Oct 6, 2022 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug proxy Issues regarding network proxies

Comments

@ccopsey
Copy link

ccopsey commented Oct 6, 2022

Type: Bug

Inside my corporate environment we have self-signed man-in-the-middle certificates protecting internet traffic. The certificates are distributed to Windows clients via Group Policy. A number of these certificates have expired, although valid certificates are also present. No other software seems to care, but vscode.json-language-features complains certificate has expired. It doesn't find the good certificates.

  • If I manually remove the expired certificates, no errors are logged. But Group Policy pushes them back out periodically.
  • If I take a laptop which exhibits this issue out of the corporate environment, no errors are logged.

Please let me know if there is any extra information I can provide, or logs I can look for.

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  ...
}
[2022-10-06 11:17:44.461] [exthost] [trace] [DiagnosticCollection] change many (extension, owner, uris) 
vscode.json-language-features _generated_diagnostic_collection_name_#1 
[
  [
    {
      "$mid":1,
      "fsPath":"******\\default.json",
      "_sep":1,
      "external":"file:///******/default.json",
      "path":"/******/default.json",
      "scheme":"file"
    },
    [
      {
        "startLineNumber":2,
        "startColumn":14,
        "endLineNumber":2,
        "endColumn":65,
        "message":"Unable to load schema from 'https://docs.renovatebot.com/renovate-schema.json': certificate has expired.",
        "code":"768",
        "severity":4
      }
    ]
  ]
]

VS Code version: Code 1.71.2 (74b1f97, 2022-09-14T21:03:37.738Z)
OS version: Windows_NT x64 10.0.19042
Modes:
Sandboxed: No

Extensions: none

@aeschli aeschli assigned chrmarti and unassigned aeschli Oct 6, 2022
@aeschli
Copy link
Contributor

aeschli commented Oct 6, 2022

The schema is loaded in the extension host, using the http/https node modules.

@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug proxy Issues regarding network proxies labels Oct 7, 2022
@ccopsey
Copy link
Author

ccopsey commented Oct 10, 2022

I tried chasing this a little more and I think root of the issue lies here: ukoloff/win-ca#41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug proxy Issues regarding network proxies
Projects
None yet
Development

No branches or pull requests

3 participants