UiPath Documentation
activities
latest
false

Developer activities

PGP ClearSign File

UiPath.Cryptography.Activities.PgpClearSignFile

Description

Creates a PGP clear-text signature of a file using a private key. The clearsigned output contains the original plaintext wrapped between -----BEGIN PGP SIGNED MESSAGE----- and -----END PGP SIGNATURE----- markers, so it is human-readable and tamper-evident.

The input file must be text, because clearsigning is designed for ASCII or UTF-8 content. For binary data, use the PGP Sign File activity instead. To verify the output, use the PGP Verify activity with the ClearSigned File (Text) verification type.

Project compatibility

Windows | Cross-platform

Windows, Cross-platform configuration

  • Input File Path - The path to the file that you want to clearsign. This field supports only strings and String variables. To use a project resource instead of a path, select the field's input menu and switch to the Input File input (an IResource).
  • Private Key File Path - The path to your PGP private key file, used to clearsign the data. This field supports only strings and String variables. To use a project resource instead of a path, select the field's input menu and switch to the Private Key File input (an IResource).
  • Output File Path - The full path where the clearsigned file is saved. This field supports only strings and String variables.
  • Passphrase - The passphrase that unlocks the private key. To provide it as a secure string instead of plain text, select the field's input menu and switch to the Passphrase (Secure) input (a SecureString).

Advanced options

Options
  • Overwrite - If a file already exists at the output path, this overwrites it. This field only supports Boolean values (True, False). The default value is False.
  • Continue On Error - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
    Note:

    If this activity is included in Try Catch and the value of the Continue On Error property is True, no error is caught when the project is executed.

Output
  • ClearSigned File - A resource handle to the clearsigned file that was written, stored in an ILocalResource variable for use in other activities. The clearsigned text is also written to the Output File Path.
  • Description
  • Project compatibility
  • Windows, Cross-platform configuration
  • Advanced options

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated