Automated Batch Subkey Creation
mailinglisten at hauke-laging.de
Sat Sep 13 15:19:36 CEST 2014
Am Sa 13.09.2014, 16:53:09 schrieb Sam M:
> I'm not a programmer, so I don't know much about source code. But I
> had downloaded the code for GPA. And to try and find an example, I
> did a grep on the option command-fd. I didn''t find anything.
> I would be grateful if you could point out the example you're
> referring to, or just give me one.
Try this (shell code, bash):
LC_ALL= LANGUAGE=en gpg --expert --batch --display-charset utf-8 \
--passphrase "$PASSPHRASE" --command-fd 0 --edit-key $short_id
Adapt the input after "8" to the capability flags you need.
I use that in my (German) script for creating offline mainkeys:
Crypto für alle: http://www.openpgp-schulungen.de/fuer/unterstuetzer/
OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: This is a digitally signed message part.
More information about the Gnupg-users