I just switched from GnuPG 1.4.2 to GnuPG 1.4.10. as the encryption engine of my
program. Now I have an error during key creation. Below a description. As this
is a core GnuPG function, I classified it as urgent. As this error only happens
sometimes (but often when GnuPG is freshly installed), it will be hard to track
down.
I think it is the return of an old fixed bug with the Windows file system that
may now have returned in only very special circumstances.
Remark: This error never happened to me with GPG 1.4.2., when I created DSA/ELG
keys. (But mostly tested on WinXP, not Windows 7.
Immediate questions:
Is there a short-term work around?
Should I just return to version 1.4.2 for key creation?
Good luck and thank you for all your work.
Wolfgang
Happens when:
gpg 1.4.10 (MinW32)
Key Creation with batch file:
Operating system: Windows 7, 32 bit, Intel Core 2 Duo L7700 1.80 GHz
Happens intermittently.
Has has also happened when key directory was not empty before key creation, but
all files in it were empty.
Has not happened with other GPG functions used with v. 1.4.10, but I have not
tested it much either.
This is the error: Key creation with batch file cannot complete.
GPG's error messages were:
gpg: renaming 'E:/Users/Wolfgang/InstantCrypt_2.2/Keys\pubring.tmp' to
'E:/Users/Wolfgang/InstantCrypt_2.2/Keys\pubring.gpg failed: Permission denied
gpg: error writing public keyring
'E:/Users/Wolfgang/InstantCrypt_2.2/Keys\pubring.gpg: file rename error
gpg: key generation failed: file rename error
gpg: done
Content of keycreation batch file:
Key-Type: RSA
Key-Length: 2048
Subkey-Type: RSA
Subkey-Length: 2048
Name-Real: Tester
Expire-Date: 0
%commit
%echo Done
State of key directory after key creation:
pubring.bak 0 KB
pubring.gpg.lock 0KB
pubring.tmp 2 KB
pubring.gpg.lock 0KB
random_seed 1KB
secring.gpg 0 KB
secring.gpg.lock 0KB
trustdb.gpg 1 KB
trustdb.gpg.lock 0KB
- End of Error description------------