Hello team,
While starting Elasticsearch 7.17.0 with security enabled, getting below error.
Please suggest where we need set the password and how.
Thanks in advance.
Error:
[o.e.b.ElasticsearchUncaughtExceptionHandler] [elkuat_01] uncaught exception in thread [main]
org.Elasticsearch.bootstrap.StartupException: ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.
ssl]]; nested: ElasticsearchException[failed to initialize SSL TrustManager]; nested: IOException[keystore password was incorrect]; nest
ed: UnrecoverableKeyException[failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly pa
dded. Such issues can arise if a bad key is used during decryption.];
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[Elasticsearch-cli-7.17.0.jar:7.17.0]
at org.Elasticsearch.cli.Command.main(Command.java:77) ~[Elasticsearch-cli-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[Elasticsearch-7.17.0.jar:7.17.0]
Caused by: org.Elasticsearch.ElasticsearchSecurityException: failed to load SSL configuration [xpack.security.transport.ssl]
at org.Elasticsearch.xpack.core.ssl.SSLService.lambda$loadSSLConfigurations$5(SSLService.java:548) ~[?:?]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at java.util.Collections$UnmodifiableMap.forEach(Collections.java:1553) ~[?:?]
at org.Elasticsearch.xpack.core.ssl.SSLService.loadSSLConfigurations(SSLService.java:544) ~[?:?]
at org.Elasticsearch.xpack.core.ssl.SSLService.(SSLService.java:145) ~[?:?]
at org.Elasticsearch.xpack.core.XPackPlugin.createSSLService(XPackPlugin.java:525) ~[?:?]
at org.Elasticsearch.xpack.core.XPackPlugin.createComponents(XPackPlugin.java:338) ~[?:?]
at org.Elasticsearch.node.Node.lambda$new$18(Node.java:735) ~[Elasticsearch-7.17.0.jar:7.17.0]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
at org.Elasticsearch.node.Node.(Node.java:749) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.node.Node.(Node.java:309) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:234) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[Elasticsearch-7.17.0.jar:7.17.0]
... 6 more
Caused by: org.Elasticsearch.ElasticsearchException: failed to initialize SSL TrustManager
at org.Elasticsearch.xpack.core.ssl.StoreTrustConfig.createTrustManager(StoreTrustConfig.java:75) ~[?:?]
at org.Elasticsearch.xpack.core.ssl.SSLService.createSslContext(SSLService.java:453) ~[?:?]
at java.util.HashMap.computeIfAbsent(HashMap.java:1220) ~[?:?]
at org.Elasticsearch.xpack.core.ssl.SSLService.lambda$loadSSLConfigurations$5(SSLService.java:546) ~[?:?]
at java.util.HashMap.forEach(HashMap.java:1421) ~[?:?]
at java.util.Collections$UnmodifiableMap.forEach(Collections.java:1553) ~[?:?]
at org.Elasticsearch.xpack.core.ssl.SSLService.loadSSLConfigurations(SSLService.java:544) ~[?:?]
at org.Elasticsearch.xpack.core.ssl.SSLService.(SSLService.java:145) ~[?:?]
at org.Elasticsearch.xpack.core.XPackPlugin.createSSLService(XPackPlugin.java:525) ~[?:?]
at org.Elasticsearch.xpack.core.XPackPlugin.createComponents(XPackPlugin.java:338) ~[?:?]
at org.Elasticsearch.node.Node.lambda$new$18(Node.java:735) ~[Elasticsearch-7.17.0.jar:7.17.0]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
at org.Elasticsearch.node.Node.(Node.java:749) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.node.Node.(Node.java:309) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:234) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[Elasticsearch-7.17.0.jar:7.17.0]
at org.Elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166) ~[Elasticsearch-7.17.0.jar:7.17.0]
Looks like you have configured a truststore in
xpack.security.transport.ssl.truststore.path:
that is password protected, but you haven’t configured its password correctly. Can you verify ?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.