9
5
GnuPG is one of these annoying tools that has a non-scriptable command line.
I want to run gpg --gen-key
in a script, the rest of the process is simple commands. Any one had any luck with this? Entering the password seems to be supported, but not the other questions it asks, key type, key size, expiry, name.
If you use the --yes
option, it still shows confirmation dialogs.
Is there any way some more friendly tool like openssl
can be used to generate keys?
BTW, congratulations. – Scott – 2015-11-27T22:23:46.030
1
Note that as of 2.1,
– Ben Creasy – 2018-01-14T21:55:30.377%secring filename
is a no-op and an ephemeral directory is used instead: https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html