기술 자료
만든 날짜
수정 날짜
수정 날짜
How To automate PGP decryption
Goal
Automate the decryption of OpenPGP encrypted files.
Howto
Prerequisite
- Purchase a license for SmartFTP Enterprise Edition
- Purchase the additional OpenPGP Addon in the Customer Area or directly through the prompt in the application.
- Download and install Gpg4Win
Create certificate
If you already have setup a certificate with a private key, you can skip this step.
- Start Kleopatra
Start Menu: All Programs - Gpg4win - Kleopatra - Go to the menu: File - New Certificate...
- Select Create a personal OpenPGP key pair
- Fill in the Name and Email
- Click Next
- Click Create Key
- Enter a new passphrase
- Click Finish
Enable Plugin in Global Settings
- Start SmartFTP
- Go to the menu: File - Settings
- The settings dialog opens
- Go to the Transfer - Queue - Plugins dialog
- Select and enable the OpenPGP Decrypt File plugin the list of plugins
- Click OK to save the changes
Enable Plugin in Favorite Settings
- Go to the Favorite Properties
- Go to the Transfer - Queue - Plugins dialog
- Select and enable the OpenPGP Decrypt File plugin the list of plugins
- Right-click on the plugin, select Properties
- Set the Match Filename pattern. If you want to decrypt all the files, use *. If you only want to decrypt the files with the file extension .pgp, use *.pgp
- Set the Local User-ID
The User-ID can be found in Kleopatra:- Right-click a certificate in the My Certificates tab for which you have a private key and select Certificate Details from the context menu
- From the Overview window you can use the Email, Key-ID, Fingerprint or the complete User-ID for the User-ID in the SmartFTP settings.
- Set the Passphrase for your certificate/private key
- Optional: If you want to automatically remove the .pgp file extension after the file has been decrypted, enter .pgp into the Remove File Extension input box.
- Click OK to save the changes
Now all downloaded files which match the file pattern will get decrypted.
What do you think about this topic? Send feedback!