Closed
Description
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:
- Create an intermediate CA
- cat the root CA and the intermediate CA into one PEM file
- Create a server cert for this CA
- 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