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

Add option to disable certificate validation #326

Open
mschroeder-fzj opened this issue Sep 18, 2024 · 2 comments
Open

Add option to disable certificate validation #326

mschroeder-fzj opened this issue Sep 18, 2024 · 2 comments
Labels
feature request Request a potential feature

Comments

@mschroeder-fzj
Copy link

Is your feature request related to a problem? Please describe.
When the module makes requests towards a FIWARE deployment (orion / iot-agent), that has e.g. self-signed certificates, the requests will fail with a Certificate Validation error.

Describe the solution you'd like
It should be possible to disable the certificate validation via a global defined variable like ssl_verify = True.
In the corresponding request section it could look like:

with requests.Session() as s:
	if isinstance(ssl_verify, bool) and not ssl_verify
		s.verify = False
@mschroeder-fzj mschroeder-fzj added the feature request Request a potential feature label Sep 18, 2024
@djs0109
Copy link
Contributor

djs0109 commented Sep 24, 2024

@mschroeder-fzj you are right, this need to be set manually so far. We have also met the same issue, and "bypassed" it just like you did. I would probably not add a global option, because the use of session is optional. But it is good to include it to one of our tutorials/exampls. @mschroeder-fzj Let me know whether you have the time to contribute. Ohterwise, I or someone will take care of it :)

Btw. @mwr-ebc you have tried adding the self-signed certificates to the trusted list, right?

@mschroeder-fzj
Copy link
Author

It doesn't have to be a completly global option.
As long as the option can be set when using session would be enough.

I don't know enough about the code to confidently contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a potential feature
Projects
None yet
Development

No branches or pull requests

2 participants