Decrypt task configuration

Configure the following properties for the Decrypt file operation task:

Description of configuration parameters for the 'Decrypt' file operation in Managed File Transfer

Field Description
Task name Type a unique name for the task.
File filter Type the name of the file if you want to filter files with specific names. By default, Managed File Transfer considers all files. If you want to use a regular expression, specify a valid regular expression in the File filter and select the Use regular expression option.
Note: Use wildcard characters to filter the file names. For example, type *.zip to trigger the action only when ZIP files are uploaded or downloaded. To trigger an action based on a name string in the ZIP files, use the name string in the File filter box, which is preceded and followed by wildcard characters. For example, type *invoice*.zip to trigger the action based on the file URLs, when ZIP files containing the character string invoice in their file names are uploaded or downloaded. If you define a File filter for a task, the task acts only on files that are filtered out.
The following are a few examples of regular expressions:
^(?!.*purchaseorder).*$
Excludes files with the file URL containing purchaseorder.
*/out/.*
Include files with the file URL containing the folder out.
^abc(.*)123$
Includes anything that starts with abc and ends with 123. Matches abc123, abcxyz123, but not abcxyz123def.
NEW-((*.doc)⏐(*_backup_*))
Includes anything that starts with NEW- that either ends in .doc, or is followed by the string _backup_.
Decrypt with Private PGP key alias Type the certificate alias for the private key file.
Note: Managed File Transfer decrypts the file only if the file is encrypted with the corresponding public key.
Verify signature Type the certificate alias for the public key file.
Note: Managed File Transfer verifies the signature only if the file was signed during encryption.
Derive file name from input file Select this option to retain the original file name of the encrypted file.
Delete original file Select this option to delete the original file and retain only the decrypted files.
Execute error task Select this option to run an error task if the file operation fails.

A Decrypt task decrypts files that are passed on from the previous task and creates the decrypted files without the .PGP extension. The source folder location contains both the original files and the corresponding decrypted files. If you select the Delete original file option, the original files are deleted. For example, assume that a post-processing action is configured to trigger when a file is uploaded to a folder. Also assume that the folder (for example, a folder named incoming) points to a physical location and is configured to run the following tasks:

Move task
To move a file that matches the filter, invoice. PGP from the incoming folder to the working folder.
Decrypt task
To decrypt the file with the Delete original file option.

After the action is executed successfully, the file that is decrypted (without the PGP extension) is available in the working folder. The original encrypted file is deleted. To make the files from the incoming folder available to a task that is configured to run after the decrypt task, make sure that you do the following steps:

  • Do not select the Delete original file option for the Decrypt task.
  • Configure a Find task to find the original files from the incoming folder in the incoming folder.