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

CURL and Requests.session() returning different values during SSL and CA verification #6832

Closed
mittal-umang opened this issue Nov 24, 2024 · 3 comments

Comments

@mittal-umang
Copy link

mittal-umang commented Nov 24, 2024

I don't know if anyone has seen this happen. but when i'm using Requests.Session() for making a requests to HTTPS URL with SSL certificate and CA cert verification it doesn't give correct response.
Whereas when i use the same certs(SSL and CA Cert) with CURL command it works seamlessly.

This is causing confluentinc/confluent-kafka-python#1850

Expected Result

Requests.Session() should work and not respond with a SSL Verification Error

Actual Result

SSLVerificationError

Reproduction Steps

No actual steps but try making a API call to HTTPS url with SSL Verification and CA Cert.

@sigmavirus24
Copy link
Contributor

I have no issues verifying TLS with a proper trust bundle and a server providing the full chain. Is this specific to Kafka or are you experiencing this with something other than Kafka as well?

@allamiro
Copy link

Could you specify the versions of the Schema Registry and Kafka you are using? Additionally, did this issue arise following a certificate update or library /client updates, or did it occur suddenly without any recent changes?

@sigmavirus24
Copy link
Contributor

Let's keep all of the discussion in the original issue instead. I'm certain this isn't an issue with requests. I use it with a custom trust store and private PKI as well as with certifi and normal websites daily. Whatever the problem is more relevant to the kafka library

@sigmavirus24 sigmavirus24 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
@psf psf locked and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants