---
title: Importing encryption settings definitions
description: Import previously exported encryption settings definitions into PingDirectory with the encryption-settings tool.
component: pingdirectory
version: 11.1
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_import_encryption_settings_defs
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/pingdirectory_server_administration_guide/pd_ds_import_encryption_settings_defs.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: September 13, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
  example: Example:
  result: Result:
---

# 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 the preferred definition for subsequent encryption settings.

## Steps

* Use the `encryption-settings` tool with the `import` subcommand to import the definition from a file.

  ### Example:

  ```shell
  $ 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
  ```
