elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

DerInputStream.getLength(): lengthTag=87, too big.

Open KnowledgeGarden opened this issue 3 years ago • 0 comments

Java API client version

8.2.2

Java version

jdk 11

Elasticsearch Version

8.2.2

Problem description

Fully articulated here https://gist.github.com/KnowledgeGarden/f57ccc26f880ea5607416b2d13f13ab2

But the tldr is that this bit of code is failing as described in the exception DerInputStream tag too big try (InputStream is = Files.newInputStream(trustStorePath)){ trustStore.load(is, ksPwd.toCharArray());

And that's on the keystore made by ElasticSearch itself.

That issue is common in the googlesphere, but seems rare in the context of ElasticSearch.

I put this gist in the forum, and got no responses in 4 days. It's holding up my progress. Hope a solution is trivial.

KnowledgeGarden avatar Jun 22 '22 17:06 KnowledgeGarden