Hi! I have this ca.pem file that has 6 CA certs belonging to two chains (so there's a chain with a root CA and an intermediate CA, then a second chain with a root CA and two intermediate CAs) and when I try validating my client cert with it I get:
โฏ openssl verify -CAfile cas/foo-certs.pem certs/cert.pem
certs/cert.pem: OK
but then when I set this at the config:
[sources.tls]
type = "socket"
address = "0.0.0.0:6514"
mode = "tcp"
tls.enabled = true
tls.crt_path = "/workdir/cert.pfx"
tls.ca_path = "/crt/ca.pem"
tls.verify_certificate = true
I keep getting "remote error: tls: unknown certificate authority" but these are the same files. 'Tis a bug, perhaps? Ofc setting verify_certificate = false works.
@binarylogic saw similar behaviour using type = "syslog" so maybe it's a wide TLS thingie.
The TLS CA handling is currently implemented to load a single certificate from the file. I gather openssl command line knows to split the PEM certificates up and load them separately. I will see what we can do to match that behavior.
Most helpful comment
The TLS CA handling is currently implemented to load a single certificate from the file. I gather openssl command line knows to split the PEM certificates up and load them separately. I will see what we can do to match that behavior.