import-ldif tool to import an encrypted LDIF
You can import an encrypted LDIF file into the same instance from which it was exported or into another server in the same replication topology with that instance. You cannot import an encrypted LDIF file into a server that is not connected to the instance from which it was exported.
import-ldiftool to import the encrypted LDIF file from Encrypting an LDIF export.Note:
The command imports the data.ldif file and decrypts the contents while overwriting the existing contents to the
userRootbackend. The tool automatically determines encryption and compression, and it can automatically identify the correct key for exports that were encrypted with a key obtained from an encryption settings definition or an internal topology key.
$ bin/import-ldif --backendID userRoot --ldifFile /path/to/data.ldif \ --overwriteExistingEntries