simple gpg syntax question

Yard, John jyard at ais.ucla.edu
Thu May 5 22:30:32 CEST 2011


Thank you JYard 

-----Original Message-----
From: John Clizbe [mailto:John at enigmail.net] 
Sent: Thursday, May 05, 2011 1:18 PM
To: GnuPG Users
Cc: Yard, John
Subject: Re: simple gpg syntax question

Yard, John wrote:
> Forgive the simple gpg syntax issue,
> 
> I have 
> 
> gpg --verbose --trust-model always --yes --armour --recipient XXXXX_UCLA
--encrypt $T1
> 
> which encrpts a file , I would like to sign it in the same command , I would
like the output to be $T1.asc
> 

gpg -v --yes --trust-model always -r XXXXX_UCLA -u <signing_key> -sea $T1

-v, --verbose
-r, --recipient
-u, --local-user-name (may be omitted if default-key specified in gpg.conf)
-s, --sign
-e, --encrypt
-a, --armor

.asc implies armored output. That option was the important missing piece.

The .gpg extension is usually used for binary OpenPGP files.

-John
U TX-Arlington

-- 
John P. Clizbe                      Inet:   John (a) Enigmail DAWT net,
FSF Assoc #995 / FSFE Fellow #1797  hkp://keyserver.gingerbear.net  or
     mailto:pgp-public-keys at 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"



More information about the Gnupg-users mailing list