BradBlake wrote:
> I could REALLY use some assistance – I need to encrypt a file with gpg (my
> Linux server is on version 1.2.6), I need to encrypt it with the public key
> from our client, and sign it with our private PGP key. I’ve got this all
> working (I imported their public key, and sent them our key), so I can run a
> command like this from the command line to encrypt the file:
> 
> gpg --armor --output encrypted_file.gpg --recipient "pgpad...@ourclient.com"
> --local-user "myusern...@mycompany.com" --sign --encrypt file_to_encrypt.txt
> 
> This works fine (and our client is able to decrypt), but it is prompting for
> my passphrase each time.  We want to set this up to run as an automated
> process via a script, without prompting for a passphrase.  So I was trying
> to follow the instructions found here:  http://www.gnupg.org/faq.html#q4.14
> 
<snip>

echo passphrase | gpg --armor --output encrypted_file.gpg               \
        --recipient "pgpad...@ourclient.com" --local-user               \
        "myusern...@mycompany.com" --sign --encrypt file_to_encrypt.txt
/should/ work

You may want to look at using --passphrase-file <passFile> or
--passphrase-fd (see man page).

These problems go away by removing the passphrase from the key. Removing the
passphrase also removes the charade that things are all that secure when the
passphrase is in a file readable by anyone with enough access. ;-)


-- 
John P. Clizbe                      Inet:John (a) Mozilla-Enigmail.org
FSF Assoc #995 / FSFE Fellow #1797  hkp://keyserver.gingerbear.net  or
     mailto:pgp-public-k...@gingerbear.net?subject=help

Q:"Just how do the residents of Haiku, Hawai'i hold conversations?"
A:"An odd melody / island voices on the winds / surplus of vowels"

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to