gpg2: unable to use secret key from OpenKeychain

justina colmena justina at colmena.biz
Fri Dec 7 17:28:19 CET 2018


Subject: secret key data (test key)
Date: 2018-12-07

This attachment is an encrypted backup I made from the OpenKeychain app of a test key I made for the purpose. The passphrase for this one is

5101-2272-0596-2716-2013-3210-0535-7592-9890

but it looks like the whole thing is encrypted by symmetric-key (AES-256) cipher because it is not encrypted to any particular public key, and furthermore, once decrypted and imported, the secret key is no longer protected by a passphrase, until I explicitly create one for it with "gpg --edit-key".

For some odd reason I am unable to use the secret key in gpg2 (~2.2.11), even though I can still encrypt to the imported key or verify signatures with it in gpg2.

There does not seem to be any problem with using the secret key in "gpg" = GnuPG 1.4.23.

$ gpg --decrypt backup_2018-12-07.sec.pgp | gpg --import
gpg: unknown armor header: Passphrase-Format: numeric9x4
gpg: unknown armor header: Passphrase-Begin: 51
gpg: AES256 encrypted data
gpg: encrypted with 1 passphrase
gpg: key CAC8E3E7: public key "Test Key 1 <test-key-1 at example.com>"
imported
gpg: key CAC8E3E7: secret key imported
gpg: key CAC8E3E7: "Test Key 1 <test-key-1 at example.com>" not changed
gpg: Total number processed: 2
gpg: imported: 1 (RSA: 1)
gpg: unchanged: 1
gpg: secret keys read: 1
gpg: secret keys imported: 1
$

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQGNBFwKeG8BDAClaZu5lcIM12biCt7tyoddrwFl/UwERhfVMqZccMXrF+puP+0I
FsVvV/EqI+tOhYLepOmCj9KfGQ0KFi/UtElbMZma7WFuDu/mVh+Hrl2wVbqSjR8u
coHKJ4Wr2ocROWmxFxdMy2acIhGKpmbvXXFsFrsTiJxM/C4YTGmktAI20qxk8QX1
+006xPEUUL8vFc/CppekpgQzff3505iPJ0fvYK+Q2D9NUCvCy4vFWR1jTu8MK1pp
0ftp9IR/WUVQwdA7GE6z6VlCEMtJsYxkCco3FgfuYr0hiSDSLZ75e7FuRGVwrrWp
GswqH9a8TIJHVfKSJ4hukmGt02UMR/L03nRCgaLyIrI6GxMzbI59di/jK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BszqyKmETm6Q0hJhKDF3GZ8vRPY25xeWv
GStZAPo5MWTBP31pwXs27lvFPKlOEadDD7X9n5M5CZ3e2NpdL+2Pwg8HN/edwJQd
IeKK1yhNU11PN9s46qUC1vvAqJnr6a2VCSQ9EaleCTDrMoLGFVkHfNLTh9b0gJFo
jeZKeqJxwdSmqzzUKWTZmTO0xIEJ3dDs+ZsYnALzkLgpRC9GXNbY5nv3RQagZTDa
soIDAO/TAH5r/0DipdfKQ1xKiQARAQABiQGfBBgBCgAJBYJcCnhvApsMAAoJEBsl
wZTKyOPnoa4MAJScUzpCjHwAFxhyUTpSTfIoA9Og2wIkMuqfqrzDRr9LnqR0Fao/
0VjDv0H2kpGNk1B1pr8IFY9UwSBpyk+cvoteFvjeSh1L3JHbKJXQ+22nQNA4ucG1
9Kb4BTak74Q6BPTZ1v735TNNkRCTVP8oC1mSDoDrST5KgRSM3C3LqT+bDcqgjW6M
vkRQDr2Tx9aFKuRfU5mQLJdVoEL3c1O7unhmnm8SiWqSQCaztFZ+3DT8tlmTtgXi
6WHNj5R//PsHiKpBKtSijBEI49M/q/yOFD9j/QGxlYAa1xQXnMPuTlVbNG9Mbd5s
LHwdk7is1Cxjn5qz7mdk1HK8x1dTVhPjj7caEcOEvFAbbpTpba1tktcjDB6l/zkZ
woXm4YgoKcYo08JyW7pMR6P1F5f31DO48Tng8IRh55OaLIW6M+FCEHrZEL/BfMeY
dK0sveGAy2sn7V7uWyqeSIRPpg6MZ2UbhU7S1akjYcelucURYnfsx+0kXdLgzEpw
ThlRvnZJ/htBWA==
=rOgB
-----END PGP PUBLIC KEY BLOCK-----

-- 
A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.

https://www.colmena.biz/~justina/justina.colmena.asc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20181207/b1b2eb44/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backup_2018-12-07.sec.pgp
Type: application/pgp-signature
Size: 5869 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20181207/b1b2eb44/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 683 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20181207/b1b2eb44/attachment-0001.sig>


More information about the Gnupg-users mailing list