json-schema-ref-parser icon indicating copy to clipboard operation
json-schema-ref-parser copied to clipboard

Disable SSL validation

Open m-mohr opened this issue 5 years ago • 1 comments

Is there a way to disable the HTTPS/SSL validation for the certificates? We are in an environment where the certificates are sometimes not valid yet/anymore, but still need to access the URLs. Would be great if there's an option for the http resolver to allow that.

m-mohr avatar Aug 19 '20 12:08 m-mohr

I guess passing through rejectUnauthorized would work. But until then I guess I can use process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;

m-mohr avatar Aug 19 '20 12:08 m-mohr