Hi Raghav,

You could take a look at
https://github.com/apache/kafka/blob/trunk/clients/src/test/java/org/apache/kafka/test/TestSslUtils.java

Regards,

Rajini

On Wed, Jul 12, 2017 at 10:23 PM, Raghav <raghavas...@gmail.com> wrote:

> Guys, Would anyone know about it ?
>
> On Tue, Jul 11, 2017 at 6:20 AM, Raghav <raghavas...@gmail.com> wrote:
>
>> Hi
>>
>> I followed https://kafka.apache.org/documentation/#security to create
>> keystore and trust store using Java Keytool. Now, I am looking to do the
>> same stuff programmatically using Java. I am struggling to find the right
>> Java classes to perform following operations:
>>
>> 1. How to extract CSR from a keystore using Java classes ?
>>
>> 2. How to add a CA cert to a keystore using Java classes ?
>>
>> I tried to following http://docs.oracle.com/javase/6/docs/api/java/secu
>> rity/KeyStore.html#load%28java.io.InputStream,%20char%5B%5D%29 but could
>> not get answers.
>>
>> Any help here is greatly appreciated.
>>
>> Thanks.
>>
>> --
>> Raghav
>>
>
>
>
> --
> Raghav
>

Reply via email to