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.
Thanks!
Justin
For those comfortable with the command line, you can change to the “ Files\GNU\GnuPG”
directory and run: gpg –help
Some quick-start command line tools are:
gpg –gen-key # This will walk you through key generation
gpg –armor –export-key <key> # Export a public key in a format that can be e-mailed
gpg –list-keys # List keys in your key ring
gpg -r <key> -e <file> # Encrypt a file.
gpg -d <file> # Decrypt a file