1
I'm generating a few test keys, but I can't seem to use the %no-protection
and %transient-key
flags. I get the following message:
$ cat dwight | gpg --homedir "dwight-keys" --gen-key --batch
gpg: keyring `dwight-keys/secring.gpg' created
gpg: keyring `dwight-keys/pubring.gpg' created
gpg: Generating a key for Dwight Schrute
gpg: skipping control `%no-protection' ()
gpg: skipping control `%transient-key' ()
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 27 more bytes)
......+++++
The error message states the %no-protection
and %transient-key
controls are skipped. This you can see as the key generator is trying to pull the random bytes from /dev/random
which if I understand the documentation correctly, %transient-key
is supposed to prevent.
This is the config file I am using to generate the key:
%echo Generating a key for Dwight Schrute
%no-protection
%transient-key
Key-Type: RSA
Key-Length: 4096
Subkey-Type: RSA
Subkey-Length: 4096
Name-Real: Dwight Schrute
Name-Email: dwight.schrute@dundermifflin.com
Creation-Date: 2005-03-24
Expire-Date: 0
%commit
%echo Key generated
Fun fact, Googling the error message just leads me to the source code of GPG and a single reference to the error message in an old archived 4chan thread.
– IQAndreas – 2014-09-19T05:35:28.027