stoplightio / spectral

A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI (v3.1, v3.0, and v2.0), Arazzo v1.0, as well as AsyncAPI v2.x.
https://stoplight.io/spectral
Apache License 2.0
2.48k stars 233 forks source link

Provide a solution for for fixing self-signed certificate errors in VSCode #2599

Closed klojewski2 closed 5 months ago

klojewski2 commented 6 months ago

When I use VSCode with a url for the RuleSet file, I get: Unable to read ruleset at ... failed, reason: self signed certificate in certificate chain While most extensions will work in VSCode by pointing to the OS certificate store (using the win-ca or other method), this extension uses some other method for storing trusted root certificates.

We use Netskope, which generates a custom certificate for the ruleset file url. But how to do we get Spectral to trust the root cert for this cusom CA?

Can you please document a method for adding a root certificate to the Spectral root certificate store? Or fix Spectral to use the same certificate store used by VSCode?

Until then, we can not use Spectral in our environment as designe.d

mnaumanali94 commented 5 months ago

Shouldn't the issue be here: https://github.com/stoplightio/vscode-spectral