-
-
Notifications
You must be signed in to change notification settings - Fork 228
Add --no-verify-ssl argument #531
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
Comments
I believe the
import httpx
r = httpx.get("https://example.org", verify=False) |
If you have the certificates installed on the system and you can connect with curl without the export SSL_CERT_DIR=/etc/ssl/certs
openapi-python-client generate --url=https://yourhost/openapi.json |
while it may not be quite what you want since its at If forcing the library user to do that is too much you could also set it to false |
You could also download the OpenAPI file locally first and then pass it as a |
Bash will also let you pipe a command as a file. openapi-python-client --path <(curl https://example.com/openapi.json) |
I think we're not going to add |
Is your feature request related to a problem? Please describe.
Sometimes self-signed certificates are used during local development (for example when hosting over
https://localhost
). Currentlyopenapi-python-client
(rightly) fails to connect to self-signed HTTPS endpoints:Describe the solution you'd like
Add a new
--no-verify-ssl
command line option that would allow developers to opt in to disabling SSL verification. This should of course not be the default.Describe alternatives you've considered
openapi-generator
supports this through the use of (hard to use/understand) Java environment variables:Ideally, a simple command line option would be much more discoverable and easy to use.
The text was updated successfully, but these errors were encountered: