Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We now support both
ssl_verification
(default totrue
) andca_certificate
(default tonull
).In order to ingest documents to Elasticsearch over HTTPS based connection, you obviously need to set the URL to
https://your-server-address
. If your server is using a certificate that has been signed by a Certificate Authority, then you're good to go. For example, that's the case if you are running Elasticsearch from cloud.elastic.co.But if you are using a self signed certificate, which is the case in development mode, you need to either ignore the ssl check (not recommended) or provide the certificate to the Elasticsearch client.
To bypass the SSL Certificate verification, you can use the
ssl_verification
option:If you are running Elasticsearch from a Docker container, you can copy the self-signed certificate generated in
/usr/share/elasticsearch/config/certs/http_ca.crt
to your local machine:And then, you can specify this file in the
elasticsearch.ca_certificate
option:You can also import your certificate into
<JAVA_HOME>\lib\security\cacerts
.For example, if you have a root CA chain certificate or Elasticsearch server certificate in DER format (it's a binary format using a
.cer
extension), you need to:It will prompt you for the password. Enter the certificate password like
changeit
._settings.json
file to connect to your Elasticsearch server over HTTPS:If you can not find
keytool
, it probably means that you did not add yourJAVA_HOME/bin
directory to your path.Closes #1538.