Page MenuHome GnuPG

gpg: can't create '(null)': No such file or directory
Closed, InvalidPublic

Description

Hi,
I have gpg2 installed with version details as:
gpg (GnuPG) 2.1.21
libgcrypt 1.7.7

When I try to create a pub and sec key I always get this issue:
gpg2 --batch --gen-key /path-to-configfile
gpg: Generating a basic OpenPGP key for our unit test...
gpg: can't create '(null)': No such file or directory

Question 2 :

I have 2 versions
gpg (GnuPG/MacGPG2) 2.0.30
libgcrypt 1.6.6

&
gpg (GnuPG) 2.1.21
libgcrypt 1.7.7

How should I get rid of 2.1.21 version

& what is the diff between gpg and gpp2?

Thanks,
Prateek

Event Timeline

I can't find the string ' Generating a basic OpenPGP key for our unit test' in the GnuPG 2.1 source nor in the the 2.0 source. Thus it seems to be a modified version of GnuPG. I guess that is the 2.0.30 you mentioned. Please run

gpg2 --version

to see the version and where it is installed.

marcus added a subscriber: marcus.

No response.