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/security/KeyStore.html#load%28java.io.InputStream,%20char%5B%5D%29 but could not get answers. Any help here is greatly appreciated. Thanks. -- Raghav