You can disable key wrapping, for example for testing purposes, when initializing the cluster with initdb. If you chose to leave your key unwrapped, you can add protection later, see Protecting an existing key.
Using a null wrap and unwrap command
Set the wrap and unwrap commands to the special value -, using the --key-wrap-command=- and --key-unwrap-command=- flags:
initdb --data-encryption -D /var/lib/edb/as16/data \ --key-wrap-command=- \ --key-unwrap-command=-
Using --no-key-wrap
The --no-key-wrap flag is a shortcut for the preceding option. It sets both the wrap and unwrap commands to - for you:
initdb --data-encryption -D /var/lib/edb/as16/data --no-key-wrapWith either option, TDE generates encryption key files but leaves them unprotected.
For initdb --data-encryption to run successfully, you must either specify a wrapping/unwrapping command, set a fallback environment variable with wrapping/unwrapping commands, or disable key wrapping with one of the previous mechanisms. Otherwise, creating an encrypted database cluster fails.
See initdb TDE options for full details on these options.