I'm using docker-compose and I've followed the documentation below to try to achieve my goals:
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/configuring-tls-docker.html
After creating the certificates I run docker-compose up
and receive the errors below:
elasticsearch | org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]
elasticsearch | Caused by: java.lang.IllegalStateException: failed to load plugin class [org.elasticsearch.xpack.core.XPackPlugin]
elasticsearch | ... 6 more
elasticsearch | Caused by: java.lang.reflect.InvocationTargetException
elasticsearch | ... 6 more
elasticsearch | Caused by: org.elasticsearch.ElasticsearchException: failed to initialize a TrustManagerFactory
elasticsearch | at org.elasticsearch.xpack.core.ssl.PEMTrustConfig.createTrustManager(PEMTrustConfig.java:48)
elasticsearch | ... 6 more
elasticsearch | Caused by: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config/certificates/ca/ca.crt
elasticsearch | ... 6 more
elasticsearch exited with code 1