Loading TOC...

xdmp:keystore-import

xdmp:keystore-import(
   $passphrase as xs:string,
   $filepath as xs:string
) as xs: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 quialified file path on the host filesystem.

Example

xdmp:keystore-import("A hard to guess phrase", "/backups/MarkLogic.wallet.bak")
=>  true

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.