MarkLogic 12 EA 1 Product Documentation
xdmp.keystoreImport

xdmp.keystoreImport(
   passphrase as String,
   filepath as String
) as Boolean

Summary

Import encryption keys into the MarkLogic embedded KMS from an exported encrypted file (see keystore-export). The import process will reject duplicate keys and log a warning indicating the id of the rejected keys. Imported keys can only be use for decryption.

Parameters
passphrase A passphrase used to decrypt the file content.
filepath A fully qualified file path on the host's filesystem.

Example

xdmp.keystoreImport("A hard to guess phrase", "/backups/MarkLogic.wallet.bak")
=> true
Powered by MarkLogic Server | Terms of Use | Privacy Policy