Search code examples
pgpgnupggpgme

What is the command line equivalent for "sign, armor and encrypt" using GPA - PGP?


I've been trying to figure out how to work the command lines for a GPA task that I want to automate. Currently, I just use GPA for Windows, select the key, select the file, check off "Armor", and click GO. There must be some command line interface for this. I'd like to work that into an automation program to eliminate the manual work.

Any ideas?


Solution

  • Use both the --encrypt and --sign operations at the same time, eg.

    gpg --armor --recipient a4ff2279 --sign --encrypt <input
    

    Adjust the input pipe as needed, and on Windows systems you might need to use gpg.exe instead (and make sure GnuPG is in your path variable).