Open Syndlex opened 1 month ago
So I figured it out.
This was just a linking Problem with cmake libcurl and OpenSSL. I use "dynamic-linking" now and installed librdkafka from confluentic.
With every other configuration I got:
(Client config error: Configuration property "sasl.oauthbearer.method" not supported in this build: OAuth/OIDC depends on libcurl and OpenSSL which were not available at build time sasl.oauthbearer.method oidc)
On my side this Issue can be closed unless @fede1024 wants to investigate this problem and needs help.
Hey, I don't fully know if this is correct here or if it should be in the librdkafka.
We wand to connect to a Kafka that is protected by https://github.com/strimzi/strimzi-kafka-oauth
This is the setup within the configuration:
My System uses Ubuntu 22.04
Cargo.toml is:
The Error that i get on runtime is:
I thing this has to do with curl not knowing the CA Let's Encrypt certificate. But I am not fully sure. I tried setting different env Variables to configure the curl setup. I also loaded the lets encrypt cert and ca into my /etc/ssl/certs/ folder.
I found this issue but i think that is the setup against the Broker not against the token endpoint. https://github.com/confluentinc/librdkafka/issues/1814
I also found this stackoverflow where the error fits but i can not adapt any solution to rust: https://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate?page=2&tab=scoredesc#tab-top