Using shell with GPG
Volker Kuhlmann
list0570 at paradise.net.nz
Sun Mar 30 03:08:33 CEST 2008
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.
Volker
--
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.
More information about the Discuss
mailing list