I have this keytool bash file that loads my certs:
regions=( us-east us-west )
CACERT_FILE="${JAVA_HOME}/lib/security/cacerts"
mkdir /keys
echo "Loading Certs"
curl -s <url> > /keys/root_ca.pem
keytool -importcert -keystore ${CACERT_FILE} -alias root -storepass <pass> -file /keys/root_ca.pem -trustcacerts -noprompt
for i in "${regions[@]}"
do
echo "Importing intermediate CA from $i"
curl -s <region url> > /keys/${i}.pem
keytool -importcert -keystore ${CACERT_FILE} -alias ${i} -storepass <pass> -file /keys/${i}.pem -trustcacerts -noprompt
done
echo "Done loading certs"
Using these commands what is the right config for confluent kafka?
Also I dont know if it would help but I think the PEM uses tls 1.2
right config -
You would need to replace ${i} with the appropriate region name. For example, if you were connecting to the us-east region, you would use the following config:
The ssl_cafile parameter points to the root CA certificate file. The ssl_certfile parameter points to the intermediate CA certificate file for the region you are connecting to. The ssl_keyfile parameter points to the user's certificate file. The ssl_password parameter is the password for the user's certificate file.
refernce - Python Confluent-Kafka SSL Configuration
https://docs.confluent.io/platform/current/kafka/authentication_ssl.html The PEM file uses TLS 1.2.
check the above process and i think it should be working