Unable to get issuer certificate when connect with our internal tools

I’m currently attempting to connect to our Kafka broker from n8n deployed in our environment, but I’m encountering the following SSL error:

unable to get issuer certificate

I followed the steps here Configure n8n to use your own certificate authority | n8n Docs but still have the same issue

here is the error message:
Connection error: unable to get issuer certificate",“broker”“clientId”:“machina”,“stack”:“Error: unable to get issuer certificate\n at TLSSocket.onConnectSecure (node:_tls_wrap:1677:34)\n at TLSSocket.emit (node:events:524:28)\n at TLSSocket._finishInit (node:_tls_wrap:1076:8)\n at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:862:12)”}

You appear to be missing part of the certificate chain. Each certificate in your self-signed certificate infrastructure needs to be added as a separate “trusted” certificate. If you have a root CA certificate, and one or more intermediate CA certificates between that and your Kafka server’s certificate, you may have configured n8n to only trust the root CA, or only trust the intermediate CA. Be sure you have added all of the certs in the chain.

You may also find some additional information that helps you get this configured correctly in this previous post about configuring Self-Signed Certificates