Hello everyone! Recently I was faced with a task: to send logs from Openshift via daemonset Fluentd to Kafka. Added fluent-plugin-kafka plugin to working Dockerfile, added config. But ran into certificate issues. I was given a .jks certificate, I converted it and it turned out something like:
ssl_ca_cert /opt/ssl/ca.pem
ssl_client_cert /opt/ssl/client_cert.pem
ssl_client_cert_key /opt/ssl/client_cert.pem
Client_cert.pem has a certificate and a key. And bingo, another mistake :)
error_class = OpenSSL :: SSL :: SSLError error = "SSL_CTX_use_PrivateKey: key values mismatch"
Please help with a working case for certificates .jks