gpg use in Debian popcon

Bill Allombert Bill.Allombert at math.u-bordeaux1.fr
Thu Aug 1 20:40:31 CEST 2013


> On Wed, 31 Jul 2013 13:51, Bill.Allombert at math.u-bordeaux1.fr said:
> 
> > gpg --no-default-keyring --keyring debian-popcon.gpg --trust-model=always \
> >     --armor -o "$POPCONGPG" -r "$POPCONKEY" --encrypt "$POPCON"
> 
> You better add the option "--batch" and because you are using "-o" you
> should also use "--yes" so that an existing output file will be
> overwritten.
> 
> > 1) This creates spurious empty files in /root/.gnupg
> 
> Well it should at least create a random_seed file.  This is in general a
> good idea.  If you don't want it use "--no-random-seed-file".
> 
> As Daniel already mentioned, using "--no-options" inhinit the creation
> of the standard ~/.gnupg directory.

Maybe this due to the version of gpg I use (1.4.12 from Debian sid)
but I get an error

$ gpg --batch --no-options --no-default-keyring --trust-model=always \
     --keyring "$KEYRING" \
     --armor -o "$POPCONGPG" -r "$POPCONKEY" --encrypt "$POPCON"

gpg: keyblock resource `/root/.gnupg/secring.gpg': file open error
gpg: fatal: /root/.gnupg: directory does not exist!
secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/32768

Cheers,
Bill



More information about the Gnupg-users mailing list