A Key-gen-config file that autodeletes?

Samuel }slund samuel@update.uu.se
Wed Sep 12 09:35:01 2001


Hi

After the comment below about refering to the file doc/DETAILS someone
should mention that the entire doc subdirectory is left out in the Windows
distribution of GnuPG.

//Samuel

On Tue, 11 Sep 2001, Ingo Kl=F6cker wrote:


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>=20
> On Dienstag, 11. September 2001 18:54, Edward Khoo wrote:
> > Hi folks,
<<<<Snip >>>>
> > Also, this conversation have taken us away from my original concern
> > of automating the passing in of interactive parameters.
> > (assuming its a 'secure' computer)
> > - How to get "--batch" to work in either command line or scripting
> > support? - or If "--batch" is the option to use to pass in a config
> > file in the first place?
> >
> > Here is Werner's original suggestion:
> > #!/bin/sh
> > gpg --gen-key --batch <$1
> > rm $1
> >
> > Which did not work for me, as I am not sure of the data format that
> > will be accepted.
>=20
> 'man gpg' would have told you the following
> <quote>
> - --gen-key Generate a new key pair. This command is nor=AD
> mally only used interactively.
> =20
> There is an experimental feature which allows
> you to create keys in batch mode. See the file
> doc/DETAILS in the source distribution on how to
> use this.
> </quote>
>=20
> And this is copied from doc/DETAILS:
> <quote>
> Here is an example:
> $ cat >foo <<EOF
> %echo Generating a standard key
> Key-Type: DSA
> Key-Length: 1024
> Subkey-Type: ELG-E
> Subkey-Length: 1024
> Name-Real: Joe Tester
> Name-Comment: with stupid passphrase
> Name-Email: joe@foo.bar
> Expire-Date: 0
> Passphrase: abc
> %pubring foo.pub
> %secring foo.sec
> # Do a commit here, so that we can later print "done" :-)
> %commit
> %echo done
> EOF
> $ gpg --batch --gen-key -a foo
> [...]
> $ gpg --no-default-keyring --secret-keyring foo.sec \
> --keyring foo.pub --list-secret-keys
> /home/wk/work/gnupg-stable/scratch/foo.sec
> - ------------------------------------------
> sec 1024D/915A878D 2000-03-09 Joe Tester (with stupid passphrase) <joe@f=
oo.bar>
> ssb 1024g/8F70E2C0 2000-03-09
> </quote>
>=20
> If you have more questions have a look at doc/DETAILS where the format
> is explained in detail.
>=20
> Regards,
> Ingo
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>=20
> iD4DBQE7nnJUGnR+RTDgudgRAsW5AJUShSjpyTnsCU93vooy5bHzXp7lAKC3IZHf
> b+PQ1pC6CfwCcDEAgR+kjw=3D=3D
> =3DKO8M
> -----END PGP SIGNATURE-----
>=20
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>=20
>=20