OpenPGP on File Upload Event Rule
For this example, we will create an Event Rule to trigger when a file is uploaded to the destination folder of the Folder Monitor Rule.
We want this Event Rule to decrypt the uploaded encrypted file, then:
- 
                                                            If the Action failed to decrypt the file, then: 
Prerequisites
- 
                                                            Private OpenPGP key (part of original keypair) 
- 
                                                            Email address for notification 
To create a File Upload Event Rule
- 
                                                            Select the File Uploaded event trigger and name the Rule. 
- 
                                                            Add the File Name Condition to the Rule. 
- 
                                                            Configure the File Name Condition to trigger only on files with the PGP extension. 
- 
                                                            Add the Cryptography: OpenPGP Action. 
- 
                                                            Set the OpenPGP action to Decrypt. (Only private keys added to the keyring will show in the list when choosing to decrypt.) 
- 
                                                            Add the Protocol: Email Action under the if action failed Condition. 
- 
                                                            Configure the email as desired. 
- 
                                                            Add the Windows Event Log Action, and specify which variables to write to the Event Log, such as the file name. 
- 
                                                            Click Apply to save the Event Rule.