f2aeb2563b
* tests/json/t-keylist-secret.out.json: indicate correctly that the "Bravo" test key does not have secret key material. -- Some older versions of GnuPG are buggy, and will claim "secret: true" for this key, even though the keyring in question has no secret key material for it. The underlying call to gpg looks something like: gpg --with-colons --with-secret --list-keys -- \ alpha@example.net bravo@example.net You can see the change in field 15 of the "pub" and "sub" output. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> GnuPG-Bug-Id: 4820
164 lines
6.4 KiB
JSON
164 lines
6.4 KiB
JSON
{
|
|
"keys": [{
|
|
"revoked": false,
|
|
"expired": false,
|
|
"disabled": false,
|
|
"invalid": false,
|
|
"can_encrypt": true,
|
|
"can_sign": true,
|
|
"can_certify": true,
|
|
"can_authenticate": true,
|
|
"secret": true,
|
|
"is_qualified": false,
|
|
"protocol": "OpenPGP",
|
|
"fingerprint": "A0FF4590BB6122EDEF6E3C542D727CC768697734",
|
|
"subkeys": [{
|
|
"revoked": false,
|
|
"expired": false,
|
|
"disabled": false,
|
|
"invalid": false,
|
|
"can_encrypt": false,
|
|
"can_sign": true,
|
|
"can_certify": true,
|
|
"can_authenticate": true,
|
|
"is_qualified": false,
|
|
"is_cardkey": false,
|
|
"is_de_vs": false,
|
|
"pubkey_algo_name": "DSA",
|
|
"pubkey_algo_string": "dsa1024",
|
|
"keyid": "2D727CC768697734",
|
|
"keygrip": "76F7E2B35832976B50A27A282D9B87E44577EB66",
|
|
"pubkey_algo": 17,
|
|
"length": 1024,
|
|
"timestamp": 920882846,
|
|
"expires": 0
|
|
}, {
|
|
"revoked": false,
|
|
"expired": false,
|
|
"disabled": false,
|
|
"invalid": false,
|
|
"can_encrypt": true,
|
|
"can_sign": false,
|
|
"can_certify": false,
|
|
"can_authenticate": false,
|
|
"is_qualified": false,
|
|
"is_cardkey": false,
|
|
"is_de_vs": false,
|
|
"pubkey_algo_name": "ELG-E",
|
|
"pubkey_algo_string": "elg1024",
|
|
"keyid": "6AE6D7EE46A871F8",
|
|
"keygrip": "A0747D5F9425E6664F4FFBEED20FBCA79FDED2BD",
|
|
"pubkey_algo": 16,
|
|
"length": 1024,
|
|
"timestamp": 920882959,
|
|
"expires": 0
|
|
}],
|
|
"userids": [{
|
|
"revoked": false,
|
|
"invalid": false,
|
|
"validity": "unknown",
|
|
"uid": "Alfa Test (demo key) <alfa@example.net>",
|
|
"name": "Alfa Test",
|
|
"email": "alfa@example.net",
|
|
"comment": "demo key",
|
|
"address": "alfa@example.net"
|
|
}, {
|
|
"revoked": false,
|
|
"invalid": false,
|
|
"validity": "unknown",
|
|
"uid": "Alpha Test (demo key) <alpha@example.net>",
|
|
"name": "Alpha Test",
|
|
"email": "alpha@example.net",
|
|
"comment": "demo key",
|
|
"address": "alpha@example.net"
|
|
}, {
|
|
"revoked": false,
|
|
"invalid": false,
|
|
"validity": "unknown",
|
|
"uid": "Alice (demo key)",
|
|
"name": "Alice",
|
|
"email": "",
|
|
"comment": "demo key",
|
|
"origin": 0,
|
|
"last_update": 0
|
|
}]
|
|
}, {
|
|
"revoked": false,
|
|
"expired": false,
|
|
"disabled": false,
|
|
"invalid": false,
|
|
"can_encrypt": true,
|
|
"can_sign": true,
|
|
"can_certify": true,
|
|
"can_authenticate": true,
|
|
"secret": false,
|
|
"is_qualified": false,
|
|
"protocol": "OpenPGP",
|
|
"fingerprint": "D695676BDCEDCC2CDD6152BCFE180B1DA9E3B0B2",
|
|
"owner_trust": "unknown",
|
|
"origin": 0,
|
|
"last_update": 0,
|
|
"subkeys": [{
|
|
"revoked": false,
|
|
"expired": false,
|
|
"disabled": false,
|
|
"invalid": false,
|
|
"can_encrypt": false,
|
|
"can_sign": true,
|
|
"can_certify": true,
|
|
"can_authenticate": true,
|
|
"secret": false,
|
|
"is_qualified": false,
|
|
"is_cardkey": false,
|
|
"is_de_vs": false,
|
|
"pubkey_algo_name": "DSA",
|
|
"pubkey_algo_string": "dsa1024",
|
|
"keyid": "FE180B1DA9E3B0B2",
|
|
"keygrip": "6D62909991D2331E5F4F605BC4DD738F30E6D26B",
|
|
"pubkey_algo": 17,
|
|
"length": 1024,
|
|
"timestamp": 920888034,
|
|
"expires": 0
|
|
}, {
|
|
"revoked": false,
|
|
"expired": false,
|
|
"disabled": false,
|
|
"invalid": false,
|
|
"can_encrypt": true,
|
|
"can_sign": false,
|
|
"can_certify": false,
|
|
"can_authenticate": false,
|
|
"secret": false,
|
|
"is_qualified": false,
|
|
"is_cardkey": false,
|
|
"is_de_vs": false,
|
|
"pubkey_algo_name": "ELG-E",
|
|
"pubkey_algo_string": "elg1024",
|
|
"keyid": "5381EA4EE29BA37F",
|
|
"keygrip": "6BBF325FADDC1109AE36CD535CA77AB9CFADD1F2",
|
|
"pubkey_algo": 16,
|
|
"length": 1024,
|
|
"timestamp": 920888071,
|
|
"expires": 0
|
|
}],
|
|
"userids": [{
|
|
"revoked": false,
|
|
"invalid": false,
|
|
"validity": "unknown",
|
|
"uid": "Bob (demo key)",
|
|
"name": "Bob",
|
|
"email": "",
|
|
"comment": "demo key"
|
|
}, {
|
|
"revoked": false,
|
|
"invalid": false,
|
|
"validity": "unknown",
|
|
"uid": "Bravo Test (demo key) <bravo@example.net>",
|
|
"name": "Bravo Test",
|
|
"email": "bravo@example.net",
|
|
"comment": "demo key",
|
|
"address": "bravo@example.net"
|
|
}]
|
|
}]
|
|
}
|