secret keys are not imported

Hauke Laging mailinglisten at hauke-laging.de
Thu Apr 8 02:31:33 CEST 2010


Hello,

I have tried to copy my new secret subkeys to another system. Though no error 
message 
appears this does not work:

# gpg hauke__0xECCB5814.sec.asc
sec  1024D/ECCB5814 2005-09-05 Hauke Laging <hauke at laging.de>
uid                            Hauke Laging <mail at hauke-laging.de>
uid                            Hauke Laging <mailinglisten at hauke-laging.de>
ssb  2048g/E623EF88 2005-09-05
ssb  2048R/51B279FA 2010-03-04
ssb  2048R/3A403251 2010-03-04

That looks good to me.

# LC_ALL=C gpg --import hauke__0xECCB5814.sec.asc
gpg: key ECCB5814: already in secret keyring
gpg: Total number processed: 1
gpg:       secret keys read: 1
gpg:  secret keys unchanged: 1

This does not.

I do have the public keys (from an earlier import):

# gpg --list-keys eccb5814
pub   1024D/ECCB5814 2005-09-05
uid                  Hauke Laging <hauke at laging.de>
uid                  Hauke Laging <mail at hauke-laging.de>
uid                  Hauke Laging <mailinglisten at hauke-laging.de>
sub   2048R/51B279FA 2010-03-04 [verfällt: 2013-03-03]
sub   2048R/3A403251 2010-03-04 [verfällt: 2013-03-03]
sub   2048R/2282921E 2010-03-08 [verfällt: 2013-03-07]

But not the secret ones (except for those which were there before already):

# gpg --list-secret-keys eccb5814
sec   1024D/ECCB5814 2005-09-05
uid                  Hauke Laging <hauke at laging.de>
uid                  Hauke Laging <mail at hauke-laging.de>
uid                  Hauke Laging <mailinglisten at hauke-laging.de>
ssb   2048g/E623EF88 2005-09-05 [verfällt: 2010-04-03]

# gpg --version
gpg (GnuPG) 2.0.15
libgcrypt 1.4.4


Thus trying to decrypt a file fails though the smartcard with the keys can be 
read (so in fact there are two problems):

# LC_ALL=C gpg testfile.tar.bz2.gpg
gpg: encrypted with 2048-bit RSA key, ID 51B279FA, created 2010-03-04
      "Hauke Laging <hauke at laging.de>"
gpg: decryption failed: No secret key

# gpg --card-status
[...]
Encryption key....: F831 934A CD0D 5092 D1FC  53E9 8E3D D37A 51B2 79FA
      created ....: 2010-03-04 02:13:27
[...]


CU

Hauke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20100408/a24bfb92/attachment.pgp>


More information about the Gnupg-users mailing list