Can't generate a key - Invalid argument
Closed, DuplicatePublic


Hi, I am a newbie in these matters and when I wanted to generate a key, such an error appeared.

The GPGME library returned an unexpected
error at gpagenkeysimpleop.c:159. The error was:

Invalid argument

I really don't know what to do, someone has an idea how to solve it?

marekmostowiak created this object in space S1 Public.
werner added a subscriber: werner.Jan 7 2019, 2:26 PM

Version of gpa and best also of gpgme? The latest gpa releases show that in the About dialog.
The installed version of gpg is also of inetrest. In a shell enter "gpg --version".

Version gpg (GnuPG) 2.2.11

gpgme 1.12.0

Can i generate a key using shell?

Yes please use the command line ( gpg --gen-key ) or Kleopatra. This issue is fixed in the latest version of the GPGME library.