PingDirectory

Importing encryption-settings definitions

About this task

To import an encryption-settings definition that has been previously exported, use the encryption-settings tool with the import subcommand. The subcommand takes the following arguments:

--input-file {path}

Specifies the path to the file containing the exported encryption-settings definition. This argument is required.

--pin-file {path}

Specifies the path to a PIN file containing the password to use to encrypt the contents of the exported definition. If this argument isn’t provided, then the PIN is interactively requested from the server.

--set-preferred

Specifies that the newly-imported encryption-settings definition should be made for the preferred definition for subsequent encryption-settings.

Steps

  • Use the encryption-settings tool with the import subcommand to import the definition to a file.

    Example:

    $ bin/encryption-settings import --input-file /tmp/exported-key --set-preferred
    Enter the PIN used to encrypt the definition:

    Result:

    Successfully imported encryption settings definition
    F635E109A8549651025D01D9A6A90F7C9017C66D from file /tmp/exported-key