doc(ext/entsearch): Simplify encryption key example

This commit is contained in:
Antoine Cotten 2022-11-22 14:33:37 +01:00
parent 87f5894f65
commit e202d6ba7c
No known key found for this signature in database
GPG Key ID: 94637E68D4A79DD0
2 changed files with 6 additions and 11 deletions

View File

@ -32,17 +32,12 @@ secret_management.encryption_keys: [my_first_encryption_key, my_second_encryptio
```
> **Note**
> To generate a strong encryption key, for example using the AES-256 cipher, you can use the OpenSSL utility or any
> other online/offline tool of your choice:
> To generate a strong random encryption key, you can use the OpenSSL utility or any other online/offline tool of your
> choice:
>
> ```console
> $ openssl enc -aes-256 -P
>
> enter aes-256-cbc encryption password: <a strong password>
> Verifying - enter aes-256-cbc encryption password: <repeat your strong password>
> ...
>
> key=<generated AES key>
> $ openssl rand -hex 32
> 680f94e568c90364bedf927b2f0f49609702d3eab9098688585a375b14274546
> ```
### Enable Elasticsearch's API key service

View File

@ -7,8 +7,8 @@
# Encryption keys to protect application secrets.
secret_management.encryption_keys:
# add encryption keys below
#- add encryption keys here
# example:
#- 680f94e568c90364bedf927b2f0f49609702d3eab9098688585a375b14274546
## ----------------------------------------------------