ImportMasterKey

The ImportMasterKey action imports the master key into the Windows account keystore. The syntax of the ImportMasterKey action is as follows.

jdbcrypt path=database-path
         ini=initialization-file-name
         action=ImportMasterKey ImportPath=file-path
         [SuppressDatabaseAccess=true KeyFileName=file-name]

The ImportMasterKey action requires the manual entry of the master key passphrase.

The ImportPath argument value is the name of the directory from which the file containing the imported key is read. The name of the file is defined by the database encryption UUID and timestamp; for example:

JADEDB.Master.25146be6-8aca-01cb-1027-0000e329f802.20101123045153031.txt

If you need to import the master key when the database does not have encryption enabled (for example, during roll-forward recovery through the encryption action), include the optional SuppressDatabaseAccess=true and KeyFileName=file-name arguments.

The value of the KeyFileName argument is the name of the file without the path. The specified ImportPath directory is searched for the specified file.

The following is an example of the ImportMasterKey action.

jdbcrypt path=d:\dbcrypt ini=d:\salesdb\jade.ini action=ImportMasterKey ImportPath=z:\jade\security\sales