# enableTDEKey {#enabletdekey}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`enableTDEKey(masterKeyPath)`

## Arguments {#arguments}

**masterKeyPath** is a string specifying the path to the TDE key file.

## Details {#details}

\[Linux Only\] This function enables transparent data encryption and initializes the specified TDE key. It must be executed by an administrator on the controller.

It returns true if successful. If an error occurs, check whether the key path is correct and if the file adheres to the required key format.

After the key is successfully configured, users can call the [getCurrentTDEKeyVersion](../g/getcurrenttdekeyversion.md) function to check the current TDE key version and verify if the encryption configuration is effective.

## Examples {#examples}

``` {#codeblock_kfg_1ks_c2c}
enableTDEKey(path/to/key)
```

