Page MenuHome GnuPG

Secret key import fails for ASCII version on windows
Closed, ResolvedPublic

Description

I think there is a problem with the secret key import/export on windows machines. I
wanted to transfer a secret key from one windows machine to another. I used the following
commands:

On my origin computer:
Attempt 1: Using GPA: Keys->Backup...
Attempt 2: Commandline: gpg --export-secret-key -a > secret.key

On the receiving computer:
Attempt 1: Using GPA: Keys->Import Keys...
Attempt 2: Commandline: gpg --allow-secret-key-import --import secret.key

Every time, the secret key import failed. GPA and commandline said that no secret keys
could be imported. I verified this using the "gpg -K" command.

When dropping the "-a" flag from the export command, everything worked. This leads me to
suspect some error related to the output format...

My system specs:

  • Windows 7 (both computers)
  • Origin computer: GnuPG modern: gnupg-w32-2.1.1_20141216.exe
  • Receiving computer: Tried both with GnuPG modern 2.1.1 and GnuPG: Gpg4win stable 2.2.3

Event Timeline

I changed this to a gpa bug. gpg4win does not yet use GnuPG 2.1

Can you still replicate this with gnupg-w32-2.1.7 ?

This issue seems fixed in gnupg-w32-2.1.7.

Regards.

On 27 August 2015 at 15:45, Werner Koch via BTS <gnupg@bugs.g10code.com>
wrote:

Werner Koch <wk@gnupg.org> added the comment:

Can you still replicate this with gnupg-w32-2.1.7 ?


GnuPG's BTS <gnupg@bugs.g10code.com>
<T1796>


werner claimed this task.