GPG4WIN eror

Bobs Uncke's Avatar

Bobs Uncke

30 Nov, 2018 06:09 PM

Hi, I've downloaded GPA using GPG4WIN. When i go to create a new key and back it up I always get this message then the program closes. I've tried uninstalling and reinstalling but nothing is stopping this error.
Any advice or another program I can use would be great.


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

Invalid argument

This is either an installation problem or a bug in GPA.
GPA will now try to recover from this error.

  1. Support Staff 1 Posted by Steve on 03 Dec, 2018 09:11 PM

    Steve's Avatar

    Hi there,

    this is the community support platform for all things GPG Suite (OpenPGP on macOS).

    For any questions regarding gpg4win, please see their website about obtaining support. There are various resources like mailing list as well as user forum.

    If you find a solution, it would be great if you could crosslink the gpg4win thread, so other users running into a similar issue will quickly find the solution.


  2. 2 Posted by john on 12 Mar, 2019 07:31 AM

    john's Avatar

    Has anyone actually found a solution? I can't appear to find one to this problem anywhere, and yet it seems quite a common problem. Please help! (been looking for weeks now).

  3. Support Staff 3 Posted by Steve on 12 Mar, 2019 10:46 PM

    Steve's Avatar

    Hi John,

    have you tried posting this question on the GPG4WIN users mailing list?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac