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

Certificate expired error #155

Closed
GravlLift opened this issue Dec 23, 2021 · 2 comments
Closed

Certificate expired error #155

GravlLift opened this issue Dec 23, 2021 · 2 comments

Comments

@GravlLift
Copy link

When referencing an external schema, specifically https://zalando.github.io/problem/schema.yaml#/Problem, I receive the following exception:

Error reading file "https://opensource.zalando.com/problem/schema.yaml: cannot open openapi-internal-https://opensource.zalando.com/problem/schema.yaml. Detail: certificate has expired"

Minimal reproduction:

openapi: 3.0.0
info:
  version: '1.0.0'
  title: 'Test'
paths:
  /test:
    get:
      responses:
        default:
          description: test
components:
  responses:
    Error:
      description: Unexpected error
      content:
        application/problem+json:
          schema:
            $ref: 'https://opensource.zalando.com/problem/schema.yaml#/Problem'

Viewing the certificate for that URL in my browser, the certificate looks to have a valid period of 2021-12-17 to 2022-03-17, which should be valid for the current date.

@ak1394
Copy link
Collaborator

ak1394 commented Dec 23, 2021

This is likely caused by an outstanding VS Code issue microsoft/vscode#136787 which will be resolved when VS Code is updated to use a newer electron version, presumably some time in Feb.

In the meantime a workaround of adding "http.systemCertificates": false to your VS Code settings.json should help.

@GravlLift
Copy link
Author

@ak1394, disabling the system certificate fixed the issue, thanks.

@ak1394 ak1394 closed this as completed Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants