Access Elasticsearch with HTTPs and HTTP

I configured my Elasticsearch server to be secure, using a proprietary certificate.
Similar to the configuration below:

# security settings
xpack.security.enabled: true
xpack.security.autoconfiguration.enabled: false
# transport ssl
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.key: certs/es01/es01.key
xpack.security.transport.ssl.certificate: certs/es01/es01.crt
xpack.security.transport.ssl.certificate_authorities: certs/ca/ca.crt
## http ssl
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.key: certs/es01/es01.key
xpack.security.http.ssl.certificate: certs/es01/es01.crt
xpack.security.http.ssl.certificate_authorities: certs/ca/ca.crt

It turns out that with these settings, even accessing the same network I always have to use HTTPs.
Is it possible to allow access to the Elastic server with HTTP and HTTPs?

It is not possible, elasticsearch will listen on HTTP or HTTPS.

If you want to redirect HTTP traffic to HTTPS you would need to put something like a LB in front of Elasticsearch to redirect the HTTP traffic.

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