2020-03-06 19:28:54 -05:00
|
|
|
==== {component} TLS/SSL settings
|
|
|
|
You can configure the following TLS/SSL settings.
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
ifdef::server[]
|
|
|
|
+{ssl-prefix}.ssl.enabled+::
|
|
|
|
Used to enable or disable TLS/SSL. The default is `false`.
|
|
|
|
endif::server[]
|
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.supported_protocols+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
ifdef::server[]
|
|
|
|
+{ssl-prefix}.ssl.client_authentication+::
|
|
|
|
Controls the server's behavior in regard to requesting a certificate
|
|
|
|
from client connections. Valid values are `required`, `optional`, and `none`.
|
|
|
|
`required` forces a client to present a certificate, while `optional`
|
|
|
|
requests a client certificate but the client is not required to present one.
|
|
|
|
ifndef::client-auth-default[]
|
2020-03-06 19:28:54 -05:00
|
|
|
Defaults to `none`.
|
2017-04-06 20:34:23 -04:00
|
|
|
endif::client-auth-default[]
|
|
|
|
ifdef::client-auth-default[]
|
|
|
|
Defaults to +{client-auth-default}+.
|
|
|
|
endif::client-auth-default[]
|
|
|
|
endif::server[]
|
|
|
|
|
|
|
|
ifdef::verifies[]
|
|
|
|
+{ssl-prefix}.ssl.verification_mode+::
|
2020-03-06 19:28:54 -05:00
|
|
|
Controls the verification of certificates.
|
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
|
2017-04-06 20:34:23 -04:00
|
|
|
endif::verifies[]
|
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.cipher_suites+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
2019-05-29 08:24:25 -04:00
|
|
|
[#{ssl-context}-tls-ssl-key-trusted-certificate-settings]
|
2020-03-06 19:28:54 -05:00
|
|
|
===== {component} TLS/SSL key and trusted certificate settings
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
The following settings are used to specify a private key, certificate, and the
|
|
|
|
trusted certificates that should be used when communicating over an SSL/TLS connection.
|
|
|
|
ifdef::server[]
|
|
|
|
A private key and certificate must be configured.
|
|
|
|
endif::server[]
|
|
|
|
ifndef::server[]
|
|
|
|
A private key and certificate are optional and would be used if the server requires client authentication for PKI
|
|
|
|
authentication.
|
|
|
|
endif::server[]
|
2017-06-27 12:14:35 -04:00
|
|
|
|
2020-03-06 19:28:54 -05:00
|
|
|
===== PEM encoded files
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
When using PEM encoded files, use the following settings:
|
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.key+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.key_passphrase+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.secure_key_passphrase+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.certificate+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-certificate]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.certificate_authorities+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
2020-03-06 19:28:54 -05:00
|
|
|
===== Java keystore files
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
When using Java keystore files (JKS), which contain the private key, certificate
|
|
|
|
and certificates that should be trusted, use the following settings:
|
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.keystore.path+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.keystore.password+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
2018-05-23 19:41:04 -04:00
|
|
|
+{ssl-prefix}.ssl.keystore.secure_password+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
+{ssl-prefix}.ssl.keystore.key_password+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
2017-10-24 11:38:37 -04:00
|
|
|
+{ssl-prefix}.ssl.keystore.secure_key_password+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
2017-04-06 20:34:23 -04:00
|
|
|
+{ssl-prefix}.ssl.truststore.path+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
|
2017-04-06 20:34:23 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.truststore.password+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
|
2017-07-25 03:31:37 -04:00
|
|
|
|
2017-10-24 11:38:37 -04:00
|
|
|
+{ssl-prefix}.ssl.truststore.secure_password+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
2019-05-29 08:24:25 -04:00
|
|
|
[#{ssl-context}-pkcs12-files]
|
2020-03-06 19:28:54 -05:00
|
|
|
===== PKCS#12 files
|
2017-07-25 03:31:37 -04:00
|
|
|
|
2018-12-19 17:53:37 -05:00
|
|
|
{es} can be configured to use PKCS#12 container files (`.p12` or `.pfx` files)
|
2017-07-25 03:31:37 -04:00
|
|
|
that contain the private key, certificate and certificates that should be trusted.
|
|
|
|
|
2020-03-06 19:28:54 -05:00
|
|
|
PKCS#12 files are configured in the same way as Java keystore files:
|
2017-07-25 03:31:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.keystore.path+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
|
2017-07-25 03:31:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.keystore.type+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
|
2017-07-25 03:31:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.keystore.password+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
|
2017-07-25 03:31:37 -04:00
|
|
|
|
2017-10-24 11:38:37 -04:00
|
|
|
+{ssl-prefix}.ssl.keystore.secure_password+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
2017-07-25 03:31:37 -04:00
|
|
|
+{ssl-prefix}.ssl.keystore.key_password+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
|
2017-07-25 03:31:37 -04:00
|
|
|
|
2017-10-24 11:38:37 -04:00
|
|
|
+{ssl-prefix}.ssl.keystore.secure_key_password+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
2017-07-25 03:31:37 -04:00
|
|
|
+{ssl-prefix}.ssl.truststore.path+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
|
2017-07-25 03:31:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.truststore.type+::
|
|
|
|
Set this to `PKCS12` to indicate that the truststore is a PKCS#12 file.
|
2020-03-06 19:28:54 -05:00
|
|
|
//TBD:Should this use the ssl-truststore-type-pkcs11 or ssl-truststore-type definition and default values?
|
2017-07-25 03:31:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.truststore.password+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
|
2017-10-24 11:38:37 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.ssl.truststore.secure_password+ (<<secure-settings,Secure>>)::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
|
2018-10-04 03:51:58 -04:00
|
|
|
|
2019-05-29 08:24:25 -04:00
|
|
|
[#{ssl-context}-pkcs11-tokens]
|
2020-03-06 19:28:54 -05:00
|
|
|
===== PKCS#11 tokens
|
2018-10-04 03:51:58 -04:00
|
|
|
|
2018-12-19 17:53:37 -05:00
|
|
|
{es} can be configured to use a PKCS#11 token that contains the private key,
|
2018-10-04 03:51:58 -04:00
|
|
|
certificate and certificates that should be trusted.
|
|
|
|
|
|
|
|
PKCS#11 token require additional configuration on the JVM level and can be enabled
|
|
|
|
via the following settings:
|
|
|
|
|
|
|
|
+{ssl-prefix}.keystore.type+::
|
|
|
|
Set this to `PKCS11` to indicate that the PKCS#11 token should be used as a keystore.
|
2020-03-06 19:28:54 -05:00
|
|
|
//TBD: Is the default value `jks`?
|
2018-10-04 03:51:58 -04:00
|
|
|
|
|
|
|
+{ssl-prefix}.truststore.type+::
|
2020-03-06 19:28:54 -05:00
|
|
|
include::{docdir}/settings/common-defs.asciidoc[tag=ssl-truststore-type-pkcs11]
|
2019-01-14 16:06:22 -05:00
|
|
|
|
|
|
|
[NOTE]
|
|
|
|
When configuring the PKCS#11 token that your JVM is configured to use as
|
|
|
|
a keystore or a truststore for Elasticsearch, the PIN for the token can be
|
|
|
|
configured by setting the appropriate value to `ssl.truststore.password`
|
|
|
|
or `ssl.truststore.secure_password` in the context that you are configuring.
|
|
|
|
Since there can only be one PKCS#11 token configured, only one keystore and
|
|
|
|
truststore will be usable for configuration in {es}. This in turn means
|
|
|
|
that only one certificate can be used for TLS both in the transport and the
|
|
|
|
http layer.
|