Non-interactively create subkey?
    Werner Koch 
    wk at gnupg.org
       
    Thu Mar 28 10:52:47 CET 2013
    
    
  
On Thu, 28 Mar 2013 02:44, mailinglisten at hauke-laging.de said:
> echo addkey$'\n'8$'\n'e$'\n'q$'\n'2048$'\n'1y$'\n'save$'\n' | 
>   LC_ALL=C gpg --expert --batch --passphrase foo --command-fd 0 \
>     --edit-key $x_short_id
 
Which only works with specific GPG versions; don't rely on that.  The
proper way to do this is a status-fd/command-fd driver handler.  Or
someone spends some time to extend the batch key generation to select an
existing key and to only add subkey.
Salam-Shalom,
   Werner
-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
    
    
More information about the Gnupg-users
mailing list