Create new key with gpg portable


I have problems with the portable version of GnuPG; here is what I did:

  • Download and install Gpg4win 2.2.4
  • execute: mkportable.exe --vanilla --verbose d:\gnu_portable
  • Uninstalled Gpg4win 2.2.4 and rebooted

So now I have a clean copy of Gpg4win 2.2.4 portable in d:\gnu_portable

When I open the Windows console, enter the directory and execute:
gpg2.exe --gen-key
the key generating dialog will run until I finally have to confirm I entered everything correctly. Gpg will tell me that I need a passphrase, but the dialog does not open.

Instead, I get an error:
gpg: can’t connect to the agent: Ung³ltiger Wert an IPC ³bergeben
gpg: Problem mit dem Agenten: Agent lõuft nicht

I was not able to find anything helpful on the net.

Can anybody help?

Thank you very much,

That language the error message is in, is German. I don’t know any German (can’t translate it), but I kind of recognize how it looks. Unless your language is German, you should download the English version of GPG4Win.

Hi Thomas,

the error message means that gpg.exe cannot connet to the service gpg-agent it needs to handle the secret part of the cert. Gpg-agent is either not running or cannot be connected to. I cannot say why. Do you see a gpg-agent process running?
You could try starting one manually.

Best Regards,
ps.: Flattr Gpg4win at,
if you appreciate this answer and my work within the Gpg4win Initiative.