INV_SGNR 9 or "no secret key" when trying to sign keys with GnuPG 2.1
The test suite fails with GnuPG 2.1, even with the fixes in the gpg21 branch, with the following errors:
IGNORED: gpg: skipped "96F47C6A": No secret key
SKIPPED: [GNUPG:] INV_SGNR 9 96F47C6A
This is because --secret-keyring
doesn't do anything in GnuPG 2.1 anymore. Worse: it is silently ignored!
So we need to figure out how to give the temporary GPG home access to private key material.
The full error log follows:
root@angela:/monkeysign# LANG=C.UTF-8 python -m unittest -v -f tests.test_ui.CliTestDialog
test_sign_fake_keyring (tests.test_ui.CliTestDialog)
test if we can sign a key on a fake keyring ... Initializing UI
copying your gpg.conf in temporary keyring
looking for key 7B75921E in your keyring
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--armor', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--export', '7B75921E']
ret: 0 stdout: -----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBEogKJ4BEADHRk8dXcT3VmnEZQQdiAaNw8pmnoRG2QkoAvv42q9Ua+DRVe/y
AEUd03EOXbMJl++YKWpVuzSFr7IlZ+/lJHOCqDeSsBD6LKBSx/7uH2EOIDizGwfZ
NF3u7X+gVBMy2V7rTClDJM1eT9QuLMfMakpZkIe2PpGE4g5zbGZixn9er+wEmzk2
mt20RImMeLK3jyd6vPb1/Ph9+bTEuEXi6/WDxJ6+b5peWydKOdY1tSbkWZgdi+Bu
p72DLUGZATE3+Ju5+rFXtb/1/po5dZirhaSRZjZA6sQhyFM/ZhIj92mUM8JJrhke
AC0iJejn4SW8ps2NoPm0kAfVu6apgVACaNmFb4nBAb2k1KWru+UMQnV+VxDVdxhp
V628Tn9+8oDg6c+dO3RCCmw+nUUPjeGU0k19S6fNIbNPRlElS31QGL4H0IazZqnE
+kw6ojn4Q44h8u7iOfpeanVumtp0lJs6dE2nRw0EdAlt535iQb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JybXwI
YyyoaeAu4pTCGj4K8j/WR5E7danE0CiwHepl9wHKQ3o5U1e2I90F5inLJYBIOhx+
aiywo4MNL7CLQpaW6Kfh++aI8r8ZKYYTEBTpgewqu0TrLOhkFqi1CM8gaqY84MW2
OSSsZXnulufujzeRvVSpApHL8aLimthIzELCl7dKes2vLvIWKy1yv3JlHRAXW6/w
blTWDo1glC6rA2jvlemNDJvS++tUzowLLXxBEVonwEmYQnzNc4CuUZ264/iUndGt
ra2WLDtlpQDMT4YCNXm4yZ4LSPJ8hR4Cv0PIz18nn90Xm9tI5v73MPrU2/uv
=22K3
-----END PGP PUBLIC KEY BLOCK-----
stderr: [GNUPG:] EXPORTED 8DC901CE64146C048AD50FBB792152527B75921E
[GNUPG:] EXPORT_RES 1 0 1
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--local-user', '96F47C6A', '--secret-keyring', '/tmp/pygpg-0D50Sv/secring.gpg', '--homedir', '/tmp/pygpg-r07z_j', '--import']
ret: 0 stdout: stderr: [GNUPG:] KEY_CONSIDERED 8DC901CE64146C048AD50FBB792152527B75921E 0
[GNUPG:] IMPORTED 792152527B75921E Antoine Beaupré <anarcat@orangeseeds.org>
[GNUPG:] IMPORT_OK 1 8DC901CE64146C048AD50FBB792152527B75921E
[GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
skipped: [GNUPG:] KEY_CONSIDERED 8DC901CE64146C048AD50FBB792152527B75921E 0
skipped: [GNUPG:] IMPORTED 792152527B75921E Antoine Beaupré <anarcat@orangeseeds.org>
FOUND: [GNUPG:] IMPORT_OK 1 8DC901CE64146C048AD50FBB792152527B75921E
FOUND: [GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
copying your public key to temporary keyring in /tmp/pygpg-r07z_j
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--armor', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--list-secret-keys', '96F47C6A']
ret: 0 stdout: sec:-:1024:1:86E4E70A96F47C6A:1342795252:::-:::scESC:::::::
fpr:::::::::3F94240C918E63590B04152E86E4E70A96F47C6A:
grp:::::::::558EB5B4989C679BED1556AD01779D43C9E821FC:
uid:-::::1376258501::5DDAF07DDB202F2251458399C54178537B81B134::Second Test Key <unittests@monkeysphere.info>:::::::::
uid:-::::1342795252::214CB0EDA28F3CA8754A4D43B7CDB7B114171B3C::Test Key <foo@example.com>:::::::::
ssb:-:1024:1:894EE34814B46386:1342795252::::::e::::::
fpr:::::::::F2A23173AB8E4CC5D70C13BA894EE34814B46386:
grp:::::::::28D7441EEA6A648FE26D8B2A2DA87D7086370A3F:
stderr: [GNUPG:] KEY_CONSIDERED 3F94240C918E63590B04152E86E4E70A96F47C6A 0
found secret key: pub [unknown] 1024R/96F47C6A 1342795252
Fingerprint = 3F94 240C 918E 6359 0B04 152E 86E4 E70A 96F4 7C6A
uid 1 [unknown] Second Test Key <unittests@monkeysphere.info>
uid 2 [unknown] Test Key <foo@example.com>
sub 1024R/14B46386 1342795252
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--armor', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--export', '3F94240C918E63590B04152E86E4E70A96F47C6A']
ret: 0 stdout: -----BEGIN PGP PUBLIC KEY BLOCK-----
mI0EUAlt9AEEAMVygQA7sGE7xS5lGk8bPK7vtBuNAb9ETjXmC8jPLZ35KTviRq1c
NfFl0J66ObgcLEQjl84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Qjz+zdg3RHUGaOPp0DyL8ydZ4nxQ
jftIrEQdl7vyLWFuQkTo3UOg4P8LOlUJJhFeI74=
=WOMM
-----END PGP PUBLIC KEY BLOCK-----
stderr: [GNUPG:] EXPORTED 3F94240C918E63590B04152E86E4E70A96F47C6A
[GNUPG:] EXPORT_RES 1 0 1
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--local-user', '96F47C6A', '--secret-keyring', '/tmp/pygpg-0D50Sv/secring.gpg', '--homedir', '/tmp/pygpg-r07z_j', '--import']
ret: 0 stdout: stderr: [GNUPG:] KEY_CONSIDERED 3F94240C918E63590B04152E86E4E70A96F47C6A 0
[GNUPG:] IMPORTED 86E4E70A96F47C6A Second Test Key <unittests@monkeysphere.info>
[GNUPG:] IMPORT_OK 1 3F94240C918E63590B04152E86E4E70A96F47C6A
[GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
skipped: [GNUPG:] KEY_CONSIDERED 3F94240C918E63590B04152E86E4E70A96F47C6A 0
skipped: [GNUPG:] IMPORTED 86E4E70A96F47C6A Second Test Key <unittests@monkeysphere.info>
FOUND: [GNUPG:] IMPORT_OK 1 3F94240C918E63590B04152E86E4E70A96F47C6A
FOUND: [GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--local-user', '96F47C6A', '--secret-keyring', '/tmp/pygpg-0D50Sv/secring.gpg', '--homedir', '/tmp/pygpg-r07z_j', '--list-keys', '7B75921E']
ret: 0 stdout: tru::1:1475543872:0:3:1:5
pub:-:4096:1:792152527B75921E:1243621534:1496357973::-:::scESCA:::::::
fpr:::::::::8DC901CE64146C048AD50FBB792152527B75921E:
uid:-::::1463698816::827D538701DB3BF883F4DC179FA0A1371B2F3553::Antoine Beaupré <anarcat@orangeseeds.org>:::::::::
uid:r::::::96A6CB81581D15D8C3A95CDD2275406F3B9725F4::Antoine Beaupré (home address) <anarcat@anarcat.ath.cx>:::::::::
uid:-::::1463698816::F13196818AB84BCB06D77A8C08BF24CC547AF9C8::Antoine Beaupré <anarcat@debian.org>:::::::::
uid:r::::::CA37D150B3528DB100560DE8EBD48DC5274BCAC3::Antoine Beaupré (Debian) <anarcat@debian.org>:::::::::
uid:r::::::FBFCBA76BCE2FC950DA3FD7EF15A2A6E5B06DACF::Antoine Beaupré (work) <anarcat@koumbit.org>:::::::::
uid:-::::1463698813::EFD6C58004C38872D63C415BD709F63A86D021A2::Antoine Beaupré <anarcat@koumbit.org>:::::::::
sub:-:4096:1:A51D5B109C5A5581:1243622183:1496358023:::::e::::::
fpr:::::::::4F8EB9269D88B4DB8059CBB8A51D5B109C5A5581:
sub:-:2048:1:B7F648FED2DF2587:1342619928::::::a::::::
fpr:::::::::BEE189C39F25BD62E9EE089AB7F648FED2DF2587:
sub:-:2048:1:604E4B3EEE02855A:1342743455::::::a::::::
fpr:::::::::5A2373088863DBDF2E007607604E4B3EEE02855A:
sub:-:2048:1:46DC033CAFD0FDF8:1343152615::::::a::::::
fpr:::::::::151FF9A119309A9BA28F40A946DC033CAFD0FDF8:
stderr: [GNUPG:] KEY_CONSIDERED 8DC901CE64146C048AD50FBB792152527B75921E 0
found 1 keys matching your request
command: ['gpg', '--command-fd', '0', '--with-fingerprint', '--list-options', 'show-sig-subpackets,show-uid-validity,show-unusable-uids,show-unusable-subkeys,show-keyring,show-sig-expire', '--status-fd', '2', '--quiet', '--batch', '--fixed-list-mode', '--no-tty', '--with-colons', '--use-agent', '--local-user', '96F47C6A', '--secret-keyring', '/tmp/pygpg-0D50Sv/secring.gpg', '--homedir', '/tmp/pygpg-r07z_j', '--sign-key', '8DC901CE64146C048AD50FBB792152527B75921E']
IGNORED: [GNUPG:] KEY_CONSIDERED 8DC901CE64146C048AD50FBB792152527B75921E 0
IGNORED: [GNUPG:] KEY_CONSIDERED 8DC901CE64146C048AD50FBB792152527B75921E 0
FOUND: [GNUPG:] GET_BOOL keyedit.sign_all.okay
WROTE: y
FOUND: [GNUPG:] GOT_IT
IGNORED: gpg: skipped "96F47C6A": No secret key
SKIPPED: [GNUPG:] INV_SGNR 9 96F47C6A
deleting the temporary keyring /tmp/pygpg-r07z_j
ERROR
======================================================================
ERROR: test_sign_fake_keyring (tests.test_ui.CliTestDialog)
test if we can sign a key on a fake keyring
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test_ui.py", line 150, in test_sign_fake_keyring
self.write_to_callback("y\ny\n", callback) # just say yes
File "tests/test_ui.py", line 55, in write_to_callback
callback(self)
File "tests/test_ui.py", line 149, in callback
execfile(os.path.dirname(__file__) + '/../scripts/monkeysign')
File "tests/../scripts/monkeysign", line 41, in <module>
u.main()
File "tests/../monkeysign/cli.py", line 67, in main
self.sign_key()
File "tests/../monkeysign/ui.py", line 506, in sign_key
if not self.tmpkeyring.sign_key(pattern, alluids):
File "tests/../monkeysign/gpg.py", line 525, in sign_key
raise GpgRuntimeError(self.context.returncode, _('unable to confirm key signing: %s') % e.found().decode('utf-8'))
GpgRuntimeError: [Errno 0] unable to confirm key signing: [GNUPG:] INV_SGNR 9 96F47C6A
----------------------------------------------------------------------
Ran 1 test in 2.310s
FAILED (errors=1)