camunda-community-hub / camunda-tasklist-client-java

Java client for the Tasklist API of Camunda Platform 8
Apache License 2.0
26 stars 16 forks source link

Configuration for a self-signed SSL certificate #96

Open mmaslarova opened 1 month ago

mmaslarova commented 1 month ago

Hello,

first of all, many thanks for the Client Library! It is really helpful for us Camunda users.

I would like to ask a question about HTTPS/SSL support. I hope this is the correct way to ask a question, I couldn't find another way.

Is there the possibility to configure the library to connect to a Tasklist API which is secured via a self-signed SSL certificate?

I am looking for something similar to ZeebeClientBuilder#caCertificatePath. I would like to use the same self-signed certificate for both the Zeebe and Tasklist APIs. And thus configure both client libs - for Zeebe and Tasklist, to trust the self-signed certificate.

Many thanks and kind regards, mmaslarova

chDame commented 1 month ago

Hi @mmaslarova,

There is not such mechanism in this client for now. You would need to add your certificate in your truststore or add a custom truststore to the application using this client.

But it could be a nice feature in the future. I'll have no time to work on this for now but feel free to add a contribution in a PR. Or I'll handle it when I have more bandwidth :)

mmaslarova commented 1 month ago

Hi @chDame ,

Many thanks for your response.

Sorry, what exactly do you refer to by saying the following?

or add a custom truststore to the application using this client.