Landers
2010-04-01 21:14:09 UTC
I am trying to execute the dos string below to generate a gpg key
automatically. The process stops and ask for a reply for the key you
want to use. I thought that if I put a 5 in the c:\c\f.tx file that
the --command-file c:\c\f.tx would read it and pass the 5 to dos to
answer the question about what key I wanted to use (RSA). The results
are as below - 3 'Invalid selection.' lines. Can someone tell me how
to reply to the 'Please select what kind of key you want:' prompt?
Thanks.
echo 1234567|gpg --passphrase-fd 0 --gen-key --no-default-keyring --
keyring c:\c\pubring.gpg --secret-keyring c:\c\secring.gpg --command-
file c:\c\f.tx
gpg (GnuPG) 1.4.9; Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading passphrase from file descriptor 0
Please select what kind of key you want:
(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Invalid selection.
Invalid selection.
Invalid selection.
automatically. The process stops and ask for a reply for the key you
want to use. I thought that if I put a 5 in the c:\c\f.tx file that
the --command-file c:\c\f.tx would read it and pass the 5 to dos to
answer the question about what key I wanted to use (RSA). The results
are as below - 3 'Invalid selection.' lines. Can someone tell me how
to reply to the 'Please select what kind of key you want:' prompt?
Thanks.
echo 1234567|gpg --passphrase-fd 0 --gen-key --no-default-keyring --
keyring c:\c\pubring.gpg --secret-keyring c:\c\secring.gpg --command-
file c:\c\f.tx
gpg (GnuPG) 1.4.9; Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading passphrase from file descriptor 0
Please select what kind of key you want:
(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Invalid selection.
Invalid selection.
Invalid selection.