BewareMyPower commented on issue #363:
URL: 
https://github.com/apache/pulsar-client-cpp/issues/363#issuecomment-1840673766

   The workflow 
[here](https://github.com/apache/pulsar-client-cpp/actions/runs/7100416866/job/19326464521?pr=365)
 can describe this issue more clearly.
   
   ```
   2023-12-05 12:06:36.958 INFO  [140093743501632] ClientConnection:189 | 
[<none> -> pulsar://localhost:6650] Create ClientConnection, timeout=10000
   2023-12-05 12:06:36.958 INFO  [140093743501632] ConnectionPool:114 | Created 
connection for pulsar://localhost:6650-0
   2023-12-05 12:06:36.962 INFO  [140093735237184] ClientConnection:396 | 
[[::1]:51810 -> [::1]:6650] Connected to broker
   2023-12-05 12:06:36.968 ERROR [140093735237184] AuthOauth2:272 | Response 
failed for getting the well-known configuration 
https://dev-kt-aa9ne.us.auth0.com./ Error Code 77: error setting certificate 
file: /etc/ssl/certs/ca-certificates.crt
   2023-12-05 12:06:36.968 ERROR [140093735237184] ClientConnection:515 | 
[[::1]:51810 -> [::1]:6650] Failed to establish connection: AuthenticationError
   2023-12-05 12:06:36.968 ERROR [140093735237184] ClientConnection:1315 | 
[[::1]:51810 -> [::1]:6650] Connection closed with AuthenticationError (refCnt: 
2)
   2023-12-05 12:06:36.968 INFO  [140093735237184] ConnectionPool:129 | Remove 
connection for pulsar://localhost:6650-0
   2023-12-05 12:06:36.968 ERROR [140093735237184] ClientImpl:198 | Error 
Checking/Getting Partition Metadata while creating producer on 
persistent://public/default/oauth2-test -- AuthenticationError
   
/home/runner/work/pulsar-client-cpp/pulsar-client-cpp/tests/oauth2/Oauth2Test.cc:84:
 Failure
   Expected equality of these values:
     ResultOk
       Which is: Ok
     client.createProducer("oauth2-test", producer)
       Which is: AuthenticationError
   [  FAILED  ] Oauth2Test.testTlsTrustFilePath (12 ms)
   ```
   
   ```c++
       const auto caPath = "/etc/ssl/certs/my-cert.crt";
       /* ... */
       ClientConfiguration conf;
       conf.setTlsTrustCertsFilePath(caPath);
       auto params = gCommonParams;
       params["private_key"] = "file://" + gKeyPath;
       conf.setAuth(AuthOauth2::create(params));
   ```
   
   The code above shows the default CA cert 
(`/etc/ssl/certs/ca-certificates.crt`) was deleted, even if setting 
`tlsTrustCertsFilePath` with the new location (`/etc/ssl/certs/my-cert.crt`), 
the OAuth2 authentication still failed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to