Setting encryption keys
Before the FortiDLP Agent transfers a shadow copy to your storage location, it encrypts it to add an additional layer of protection. To do this, the Agent requires an encryption key.
You will need to generate at least one encryption key using the FortiDLP Decryption Tool. An encryption key has a public and private component:
- The public key must be specified in the FortiDLP Console to be accessible by the FortiDLP Agent for encryption.
- The private key must be kept in a safe location, only accessible to operators who should decrypt shadow copies. When you generate an encryption key using the FortiDLP Decryption Tool Extension, the private key is automatically encrypted and secured in the tool within a passphrase-protected vault. When you generate an encryption key using the FortiDLP Decryption CLI Tool, the private key is saved in your home directory by default (detailed below), and we advise implementing internal security measures like access control and logging to protect it.
Refer to the following instructions when setting encryption keys using either the FortiDLP Decryption Tool Extension or FortiDLP Decryption CLI Tool.
How to set an encryption key using the FortiDLP Decryption Tool Extension
- On your browser's menu bar, click the icon and launch the FortiDLP Decryption Tool Extension.
- In the New passphrase field, type a passphrase.
- contains a mixture of uppercase and lowercase letters, numbers, and special characters
- is complex (avoid strings of repeated characters)
- is unique (avoid reusing passphrases).
- In the Confirm passphrase field, type your passphrase again.
- Click OK.
- Do one of the following:
- If this is your first time decrypting shadow copies, to generate a new key:
- Click Generate a new key.
Your key pair is generated. - Click Copy to copy the public key.
- Log in to the FortiDLP Console.
- On the left-hand sidebar, click .
- Under Integrations, select the File shadowing tab.
- In the Encryption keys section, click Add key.
- In the Add new encryption key dialog box:
- In the Name field, type a key name that will help you associate your private key with the public key.
- In the Public key field, paste your public key.
- Click Save.
From here, you can also optionally export the public key to a PEM file by clicking Export.
- Click Generate a new key.
- If you have decrypted shadow copies before using the FortiDLP Decryption CLI Tool, to import your existing key:
- Click Import an existing key.
- Select your existing private key file.
- In the Passphrase field, type the FortiDLP Decryption CLI Tool passphrase you chose to protect the key (not your browser extension passphrase) and then click OK.
- If you have not already added the public key to the FortiDLP Console, do the following:
- Click Copy to copy the public key.
- Log in to the FortiDLP Console.
- On the left-hand sidebar, click .
- Under Integrations, select the File shadowing tab.
- In the Encryption keys section, click Add key.
- In the Add new encryption key dialog box:
- In the Name field, type a key name that will help you associate your private key with the public key.
- In the Public key field, paste your public key.
- Click Save.
By default, on Windows, the private key file is saved in
C:/Users/<user>/.reveal-decryption-key/key
. On macOS and Linux, the private key file is saved in~/.reveal-decryption-tool/key
.
- If this is your first time decrypting shadow copies, to generate a new key:
Your passphrase must contain at least 12 characters. It is also recommended that it: Remember this passphrase, as you will need it every time you use the FortiDLP Decryption Tool Extension. |
If you forget your FortiDLP Decryption Tool Extension passphrase, you will lose access to all private keys stored in the tool and files that were encrypted using such keys. Fortinet cannot recover passphrases and private keys. If needed, you can view an existing public key in the FortiDLP Console. The FortiDLP Decryption Tool Extension also allows you to export keys for backup. |
After you configure at least one encryption key, proceed to Enabling policies with file shadowing.
For details on managing keys, see Rotating encryption keys and Deleting encryption keys.
How to set an encryption key using the FortiDLP Decryption CLI Tool
- Open a CLI.
- Go to the directory containing the FortiDLP Decryption CLI Tool binary.
- Do one of the following:
- On Windows, run the command
reveal-decryption-tool.exe keygen
. - On macOS or Linux, run the command
./reveal-decryption-tool keygen
.
- On Windows, run the command
- Type a passphrase and then press Enter.
- contain at least 15 characters
- contain a mixture of uppercase and lowercase letters, numbers, and special characters
- be complex (avoid strings of repeated characters)
- be unique (avoid reusing passphrases).
- Store the private key in a safe location and copy the public key.
- Log in to the FortiDLP Console.
- On the left-hand sidebar, click .
- Under Integrations, select the File shadowing tab.
- In the Encryption keys section, click Add key.
- In the Add encryption key dialog box, do the following:
- In the Name field, type a key name that will help you associate your private key with the public key.
- In the Public key field, paste your public key.
- Click Save.
Your passphrase must: Remember this passphrase, as you will need it every time you use the FortiDLP Decryption CLI Tool. |
Your key pair is generated.
By default, on Windows, the private key file is saved in |
If you lose your private key or forget your FortiDLP Decryption CLI Tool passphrase, you will lose access to all files that were encrypted using that key. Fortinet cannot recover private keys and passphrases. If needed, you can view an existing public key in the FortiDLP Console or by running the |
After you configure at least one encryption key, proceed to Enabling policies with file shadowing.
For details on deleting unwanted keys, see Deleting encryption keys.