Using gpg4win to encrypt with batch file
Posted on 2011-03-09
I have an OpenPGP Key Pair that was being used in CuteFTP to encrypt files. I need to automate encrytion of files and to my knowledge, CuteFTP will only encrypt using the GUI interface.
So, after reading some old posts here on EE, I decided to download gpg4Win in hopes to be able first, import
the existing key pair, and then be able to run a batch file to encrypt files.
I attempted to import the key pair into Kleopatra but ran into some issues. Firstly, the .ASC file includes the public key and the private key. Is this a problem for gpg4win?
I'm not sure of this is causing problems for me but when I imported, only the private key was succesfully added. I tried to delete the key and start over however,
I received an error that the public key was not signed.
1. Will I be able to encrypt from a batch file with gpg4Win, barring I import the keys correctly?
2. Should I be able to import this key pair in the current format- both public and private keys together in one .ASC file?
Looking for some insight, I'm new to pgp.