managing OpenPGP cards in batch mode?
Dashamir Hoxha
dashohoxha at gmail.com
Tue May 3 22:31:24 CEST 2016
On Tue, May 3, 2016 at 8:20 PM, Daniel Pocock <daniel at pocock.pro> wrote:
>
>
> On 03/05/16 15:55, Dashamir Hoxha wrote:
> > On Tue, May 3, 2016 at 3:04 PM, Daniel Pocock <daniel at pocock.pro
> > <mailto:daniel at pocock.pro>> wrote:
> >
> > I tried this with GnuPG 2.0.26 on Debian:
> >
> > $ gpg2 --card-edit --batch
> > gpg: can't do this in batch mode
> >
> >
> > You can try something like this:
> > -
> https://github.com/nyarly/simplekey/blob/master/commands/trust#L46-L50
> > or like this:
> > -
> https://github.com/dashohoxha/egpg/blob/master/src/cmd/key/renew.sh#L40-L47
>
> Thanks for this feedback
>
> This is a list of all the things that I need to batch/manage from the
> whiptail UI:
>
> gen-key (and get back the key ID)
>
> adduid
> - GnuPG 2.1 has --quick-adduid
>
> adding more subkeys (addkey)
> "--gen-key --batch" only creates one subkey
>
> gen-revoke
>
> card-edit (for setting PIN, etc)
>
> keytocard
>
I will keep an eye on your project and see how you manage to solve these.
Is it on GitHub (so that I can watch you)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160503/77ec1017/attachment.html>
More information about the Gnupg-users
mailing list