Configure Access to Kafka Cluster
Kafka mTLS authentication
Get certificates and key
# Get the cluster's CA certificate
curl --location https://kafka.de-fra.ionos.com/clusters/${clusterId}/users/${userId}/access --header "Authorization: Bearer ${personalToken}" | yq -r '.metadata.certificateAuthority' > ca-cert.pem
# verify
openssl x509 -in ca-cert.pem -text -noout
# Get the (admin) users client certificate
curl --location https://kafka.de-fra.ionos.com/clusters/${clusterId}/users/${userId}/access --header "Authorization: Bearer ${personalToken}" | yq -r '.metadata.certificate' > admin-cert.pem
# verify
openssl x509 -in admin-cert.pem -text -noout
# Get the (admin) users client key
curl --location https://kafka.de-fra.ionos.com/clusters/${clusterId}/users/${userId}/access --header "Authorization: Bearer ${personalToken}" | yq -r '.metadata.privateKey' > admin-key.pem
# verify
openssl rsa -in admin-key.pem -checkConvert certificates & key
PKCS#12 (.p12 / .pfx)
Java KeyStore (JKS)
PKCS#8 PEM
Last updated
Was this helpful?