Enabling data encryption in the server
Enable data encryption during server setup or after server setup.
About this task
When enabling data encryption in the server, configure for backups and LDIF exports with the following global properties.
Global property | Configuration description | ||
---|---|---|---|
|
Indicates whether to automatically compress LDIF exports that are also encrypted.
|
||
|
The unique identifier for the encryption settings definition to use to generate the encryption key for encrypted backups by default.
|
||
|
Indicates whether the server should encrypt backups by default.
|
||
|
Indicates whether the server should encrypt LDIF exports by default.
|
Perform the following steps to enable data encryption:
Steps
-
To enable encryption, choose from one of the following setups:
Choose from:
-
During server setup, define an encryption key and passphrase.
-
On legacy systems or post setup, configure data encryption by having at least one encryption-settings definition available for use.
-
-
Set the value of the encrypt-data global configuration property to
true
using the dsconfig tool.Example:
$ bin/dsconfig set-global-configuration-prop --set encrypt-data:true
Result:
Setting the global configuration property automatically enables data encryption for all types of backends that support it, including the changelog backend and indexes, as well as for the replication server database. All subsequent write operations cause the corresponding records that are written into any of these locations to be encrypted. Any existing data remains unencrypted until it is rewritten by a write operation.
Next steps
To have existing data encrypted, export that data to LDIF and re-import it. This works for both the data backends, the changelog, and indexes.
This does not work for the replication database, so existing change records remain unencrypted until they are purged. To purge a compromised encryption settings definition, safely purge the replication database by following the steps in Dealing with a compromised encryption key. |