elastic / go-elasticsearch

The official Go client for Elasticsearch
https://github.com/elastic/go-elasticsearch#go-elasticsearch
Apache License 2.0
65 stars 617 forks source link

elasticsearch.NewClient using fasthttp and SSL #904

Open nb71 opened 2 months ago

nb71 commented 2 months ago

Is there any example available on connecting to a secured ElasticSearch cluster, but using fasthttp?

I'm running bechmarks using https://github.com/elastic/go-elasticsearch/tree/main/_examples/bulk/benchmarks

Modified the code to connect using certificate, OK

But if I add --fasthttp it gives [signal SIGSEGV: segmentation violation

Using CertificateFingerprint, OK

But using --fasthttp: Runner error: run: setup: encoding document: tls: failed to verify certificate: x509: certificate signed by unknown authority

Any help or pointer will be appreciated. Thanks