Using shell with GPG

Aaron Hsu arcfide at mac.com
Sun Mar 30 04:34:13 CEST 2008


Hello Volker,

Thanks for your message...

--On March 30, 2008 2:08:33 PM +1300 Volker Kuhlmann 
<list0570 at paradise.net.nz> wrote:

> On Sun 30 Mar 2008 09:08:53 NZDT +1300, Aaron Hsu wrote:
>
>> I am hoping that maybe I can use the shell menu feature of NEdit to
>> do some  things with GPG. I am thinking about the ability to select
>> some text and  then sign it by passing the selection to 'gpg
>> --clearsign -'.
>>
>> The problem is that GPG requires a password to verify/unlock the
>> signature.  Is there anyway that I can work with this?
>
> I believe so, if your nedit is started from a shell which sets the
> GPG_AGENT_INFO variable and you have mechanisms in place which call
> the specified agent on gpg's behalf. This is the default setup on
> Linux with KDE (on openSUSE anyway). When gpg needs a password it
> will then call its agent to get it. The gpg docs should have all the
> info. The default agent shipped with gpg2 is gpg-agent.

That makes sense, and now that I read about GPG2, I see how this is 
rather obvious. However, I am using GPG 1.4.8 on Mac OS X at the 
moment. I would not mind compiling GPG 2.0.8, but I thought that this 
was an unstable development version, and it I inferred that building it 
was non-trivial. I use X11 on Mac OS X extensively, so I would not mind 
if it had a simple X or Motif interface, but I'm not fond of installing 
a lot of other dependencies if there are more than that, such as GTK or 
Qt.

Anyways, thanks for your hint, I was wondering if something like this 
existed, and apparently it does. ;-)

-- 
Aaron Hsu <arcfide at sacrideo.us> | Jabber: arcfide at jabber.org
``Government is the great fiction through which everybody endeavors to
live at the expense of everybody else.'' - Frederic Bastiat



More information about the Discuss mailing list