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

Possibility to specify not to validate SSL certificates #12

Open
KGausel opened this issue Jun 4, 2020 · 2 comments
Open

Possibility to specify not to validate SSL certificates #12

KGausel opened this issue Jun 4, 2020 · 2 comments
Assignees

Comments

@KGausel
Copy link

KGausel commented Jun 4, 2020

Describe the solution you'd like
A way to specify the Humio clients to not validate SSL certificates. This is very useful for local development.

@thehilll
Copy link

thehilll commented Nov 3, 2020

I ran into the same issue, but the function calls appear to pass **kwargs all the way through to the ultimate call to requests, so if you want to just ignore the certificate you could use:

client.ingest_json_data(
    structured_data,
    verify=False
)

This will insert the data into humio while throwing a warning.

If you have a root CA you want to trust you could do:

client.ingest_json_data(
    structured_data,
    verify='/path/to/root_cert.pem'
)

Which inserts the data with no warning.

@AlexanderBrandborg AlexanderBrandborg self-assigned this Dec 1, 2020
@AlexanderBrandborg
Copy link
Contributor

@thehilll yeah, most of the library is made so you can just pass **kwargs to the actual call.
However I'll see if I can make this a bit easier in the future so that won't be necessary. Will strive to add this soon 👍🏻

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

3 participants