Automated Batch Subkey Creation

Sam M emunch at
Tue Sep 16 14:23:19 CEST 2014


Security and encryption is difficult, and users are not usually up to
trying to figure out the details. As long as an external audit tells them
their information is safe, they are happy. They don't want to go into the

I have a particular use case that I have been working on for a B2B site.
Thus the interest.

But even in my case, once the keys have been generated and distributed, I
will not need the scripting.

Thanks all for your help here. I have been able to get Hauke's script
working for me.

Another item I wished to automate was the generation of a revocation key,
both for the master key as well as subkeys. But this does not seem to be
possible. I'm always asked for a passphrase. I'll post this in a separate

Thanks all.


On 13 September 2014 19:50, Werner Koch <wk at> wrote:

> On Sat, 13 Sep 2014 15:19, mailinglisten at said:
> > Try this (shell code, bash):
> That is of course version and configure option specific because it uses
> canned commands.  If it works for you, fine but you should be aware of
> that restriction.
> Now, is adding a subkey a regular business of gpg users?  If we can
> assume that it is used as often as --export-secret-subkeys, I am willing
> to add a --quick-gen-subkey command for 2.1.
> Shalom-Salam,
>    Werner
> --
> Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20140916/37f49c8d/attachment.html>

More information about the Gnupg-users mailing list