Skip to content

[BUG] CA chains are not supported with native-tls #100

Closed
@reyk

Description

@reyk

Describe the bug
Using a CA pem cert CertificateValidation::Full only supports a single certificate and breaks with CAs that require an intermediate CA.

To Reproduce
Steps to reproduce the behavior:

  1. Create an intermediate CA
  2. cat the root CA and the intermediate CA into one PEM file
  3. Create a server cert for this CA
  4. Try to connect an elasticsearch client to it

Expected behavior
Either accept an array of certs or split the PEM file into individual certs and call the underlying reqwest method multiple times.

Environment (please complete the following information):
native-tls

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions