tls: Handle tls.ca_path and tls.ca_file correcty
tls: Handle tls.ca_path and tls.ca_file correcty

Suppose we have the following configuration:

    [OUTPUT]
      Name http
      ...
      tls On
      tls.ca_file /var/cert/custom.crt

With the old code, `tls.ca_file` was simply ignored, because the old
code checked ca_path first, and just proceeded to load system certs
if ca_path was not provided.

Fix `tls_context_create()` to honor ca_path and ca_file properly.

Signed-off-by: Fujimoto Seiji <ef879192bb1e41d519c82cf76440dc8e9a530806@ceptord.net>

fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit