ivankelly opened a new issue #2314: TLS auth not supported for https lookup in 
C++ client
URL: https://github.com/apache/incubator-pulsar/issues/2314
 
 
   Try the following test:
   ```
   TEST(AuthPluginTest, testTlsDetectHttps) {
       ClientConfiguration config = ClientConfiguration();
       config.setUseTls(true); // shouldn't be needed soon
       
config.setTlsTrustCertsFilePath("../../pulsar-broker/src/test/resources/authentication/tls/cacert.pem");
       config.setTlsAllowInsecureConnection(false);
       AuthenticationPtr auth =
           
pulsar::AuthTls::create("../../pulsar-broker/src/test/resources/authentication/tls/client-cert.pem",
                                   
"../../pulsar-broker/src/test/resources/authentication/tls/client-key.pem");
       config.setAuth(auth);
   
       Client client("https://localhost:9766";, config);
   
       std::string topicName = 
"persistent://property/cluster/namespace/test-tls-detect-https";
   
       Producer producer;
       Promise<Result, Producer> producerPromise;
       client.createProducerAsync(topicName, 
WaitForCallbackValue<Producer>(producerPromise));
       Future<Result, Producer> producerFuture = producerPromise.getFuture();
       Result result = producerFuture.get(producer);
       ASSERT_EQ(ResultOk, result);
   }
   ```
   
   Should work. Does not. Code isn't there to support it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to