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

Cannnot generate schema from endpoints having invalid and self-signed certificates #78

Open
marcothz opened this issue Jan 31, 2024 · 1 comment

Comments

@marcothz
Copy link

In our development and testing environments, we use self-signed HTTPS certificated, but get-graphql-schema enforces SSL certificate validation.
My current workaround is to point to HTTP endpoint, but that's only possible for my development environment.

@mostlylikeable
Copy link

mostlylikeable commented Nov 10, 2024

Ran into this as well. The cert check is done inside node fetch, but i was able to disable the check by setting env NODE_TLS_REJECT_UNAUTHORIZED=0 get-graphql-schema. Should be cautious about using this, because it disables tls cert validation for any fetch request.

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