Cannot use https on elasticsearch server

Hello there,

Right now i'm configuring elastic security with https based on article:

I'm getting trouble after generate http.p12 certificate. Error like this:

elastic server already up, but still not secured
image
elasticsearch.yml config:

#xpack.security.transport.ssl.enabled: true
#xpack.security.transport.ssl.verification_mode: certificate
#xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
#xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
#xpack.security.http.ssl.enabled: true
#xpack.security.http.ssl.keystore.path: "http.p12"

xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.client_authentication: required
xpack.security.transport.ssl.keystore.path: "/etc/elasticsearch/elastic-certificates.p12"
xpack.security.transport.ssl.truststore.path: "/etc/elasticsearch/elastic-certificates.p12"

xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: "/etc/elasticsearch/http.p12"
#xpack.security.http.ssl.truststore.path: "/etc/elasticsearch/elastic-certificates.p12"

can anyone help me? thanks a lot before.

Solved after a few days searching, the problem is on my local machine not import the certificate yet.

i follow this step: Import cert on local machine

Everything works fine now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.