ssl-settings.asciidoc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. ==== {component} TLS/SSL Settings
  2. You can configure the following TLS/SSL settings. If the settings are not configured,
  3. the {ref}/security-settings.html#ssl-tls-settings[Default TLS/SSL Settings]
  4. are used.
  5. ifdef::server[]
  6. +{ssl-prefix}.ssl.enabled+::
  7. Used to enable or disable TLS/SSL. The default is `false`.
  8. endif::server[]
  9. +{ssl-prefix}.ssl.supported_protocols+::
  10. Supported protocols with versions. Valid protocols: `SSLv2Hello`,
  11. `SSLv3`, `TLSv1`, `TLSv1.1`, `TLSv1.2`. Defaults to `TLSv1.2`, `TLSv1.1`,
  12. `TLSv1`. Defaults to the value of `xpack.ssl.supported_protocols`.
  13. ifdef::server[]
  14. +{ssl-prefix}.ssl.client_authentication+::
  15. Controls the server's behavior in regard to requesting a certificate
  16. from client connections. Valid values are `required`, `optional`, and `none`.
  17. `required` forces a client to present a certificate, while `optional`
  18. requests a client certificate but the client is not required to present one.
  19. ifndef::client-auth-default[]
  20. Defaults to the value of `xpack.ssl.client_authentication`.
  21. endif::client-auth-default[]
  22. ifdef::client-auth-default[]
  23. Defaults to +{client-auth-default}+.
  24. endif::client-auth-default[]
  25. endif::server[]
  26. ifdef::verifies[]
  27. +{ssl-prefix}.ssl.verification_mode+::
  28. Controls the verification of certificates. Valid values are `none`,
  29. `certificate`, and `full`.
  30. See <<ssl-tls-settings, `xpack.ssl.verification_mode`>> for a description of these values.
  31. Defaults to the value of `xpack.ssl.verification_mode`.
  32. endif::verifies[]
  33. +{ssl-prefix}.ssl.cipher_suites+::
  34. Supported cipher suites can be found in Oracle's http://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html[
  35. Java Cryptography Architecture documentation]. Defaults to the value of
  36. `xpack.ssl.cipher_suites`.
  37. ===== {component} TLS/SSL Key and Trusted Certificate Settings
  38. The following settings are used to specify a private key, certificate, and the
  39. trusted certificates that should be used when communicating over an SSL/TLS connection.
  40. ifdef::server[]
  41. A private key and certificate must be configured.
  42. endif::server[]
  43. ifndef::server[]
  44. A private key and certificate are optional and would be used if the server requires client authentication for PKI
  45. authentication.
  46. endif::server[]
  47. If none of the settings below are specified, the {ref}/security-settings.html#ssl-tls-settings[Default TLS/SSL Settings] are used.
  48. ===== PEM Encoded Files
  49. When using PEM encoded files, use the following settings:
  50. +{ssl-prefix}.ssl.key+::
  51. Path to a PEM encoded file containing the private key.
  52. +{ssl-prefix}.ssl.key_passphrase+::
  53. The passphrase that is used to decrypt the private key. This value is optional
  54. as the key might not be encrypted.
  55. +{ssl-prefix}.ssl.secure_key_passphrase+ (<<secure-settings,Secure>>)::
  56. The passphrase that is used to decrypt the private key. This value is optional
  57. as the key might not be encrypted.
  58. +{ssl-prefix}.ssl.certificate+::
  59. Path to a PEM encoded file containing the certificate (or certificate chain)
  60. that will be presented when requested.
  61. +{ssl-prefix}.ssl.certificate_authorities+::
  62. List of paths to the PEM encoded certificate files that should be trusted.
  63. ===== Java Keystore Files
  64. When using Java keystore files (JKS), which contain the private key, certificate
  65. and certificates that should be trusted, use the following settings:
  66. +{ssl-prefix}.ssl.keystore.path+::
  67. Path to the keystore that holds the private key and certificate.
  68. +{ssl-prefix}.ssl.keystore.password+::
  69. Password to the keystore.
  70. +{ssl-prefix}.ssl.keystore.secure_password+ (<<secure-settings,Secure>>)::
  71. Password to the keystore.
  72. +{ssl-prefix}.ssl.keystore.key_password+::
  73. Password for the private key in the keystore. Defaults to the
  74. same value as +{ssl-prefix}.ssl.keystore.password+.
  75. +{ssl-prefix}.ssl.keystore.secure_key_password+ (<<secure-settings,Secure>>)::
  76. Password for the private key in the keystore.
  77. +{ssl-prefix}.ssl.truststore.path+::
  78. Path to the truststore file.
  79. +{ssl-prefix}.ssl.truststore.password+::
  80. Password to the truststore.
  81. +{ssl-prefix}.ssl.truststore.secure_password+ (<<secure-settings,Secure>>)::
  82. Password to the truststore.
  83. ===== PKCS#12 Files
  84. {es} can be configured to use PKCS#12 container files (`.p12` or `.pfx` files)
  85. that contain the private key, certificate and certificates that should be trusted.
  86. PKCS#12 files are configured in the same way as Java Keystore Files:
  87. +{ssl-prefix}.ssl.keystore.path+::
  88. Path to the PKCS#12 file that holds the private key and certificate.
  89. +{ssl-prefix}.ssl.keystore.type+::
  90. Set this to `PKCS12` to indicate that the keystore is a PKCS#12 file.
  91. +{ssl-prefix}.ssl.keystore.password+::
  92. Password to the PKCS#12 file.
  93. +{ssl-prefix}.ssl.keystore.secure_password+ (<<secure-settings,Secure>>)::
  94. Password to the PKCS#12 file.
  95. +{ssl-prefix}.ssl.keystore.key_password+::
  96. Password for the private key stored in the PKCS#12 file.
  97. Defaults to the same value as +{ssl-prefix}.ssl.keystore.password+.
  98. +{ssl-prefix}.ssl.keystore.secure_key_password+ (<<secure-settings,Secure>>)::
  99. Password for the private key stored in the PKCS#12 file.
  100. +{ssl-prefix}.ssl.truststore.path+::
  101. Path to the PKCS#12 file that holds the certificates to be trusted.
  102. +{ssl-prefix}.ssl.truststore.type+::
  103. Set this to `PKCS12` to indicate that the truststore is a PKCS#12 file.
  104. +{ssl-prefix}.ssl.truststore.password+::
  105. Password to the PKCS#12 file.
  106. +{ssl-prefix}.ssl.truststore.secure_password+ (<<secure-settings,Secure>>)::
  107. Password to the PKCS#12 file.
  108. ===== PKCS#11 Tokens
  109. {es} can be configured to use a PKCS#11 token that contains the private key,
  110. certificate and certificates that should be trusted.
  111. PKCS#11 token require additional configuration on the JVM level and can be enabled
  112. via the following settings:
  113. +{ssl-prefix}.keystore.type+::
  114. Set this to `PKCS11` to indicate that the PKCS#11 token should be used as a keystore.
  115. +{ssl-prefix}.truststore.type+::
  116. Set this to `PKCS11` to indicate that the PKCS#11 token should be used as a truststore.