sq inspect doesn't show subkeys with not valid signatures, but it does show user ids
Consider:
$ sq inspect certificate-with-unsigned-components.asc
certificate-with-unsigned-components.asc: OpenPGP Certificate.
Fingerprint: 6DE8 B1D9 C41A 34D6 7AB8 9BD2 B6DB 9B1F 716A 9098
Public-key algo: RSA (Encrypt or Sign)
Public-key size: 3072 bits
Creation time: 2020-04-15 03:33:41 UTC
Expiration time: 2022-04-15 03:33:41 UTC (creation time + P730D)
Key flags: certification, signing
Subkey: D41E 4059 BFB0 19D4 3623 0732 3BE1 8580 C43F 434B
Public-key algo: RSA (Encrypt or Sign)
Public-key size: 3072 bits
Creation time: 2020-04-15 03:33:41 UTC
Key flags: transport encryption, data-at-rest encryption
Subkey: E206 C803 19DF 95D1 BD00 AEC3 41F1 7884 8257 A420
Public-key algo: RSA (Encrypt or Sign)
Public-key size: 3072 bits
Creation time: 2020-04-15 03:40:12 UTC
Key flags: signing
UserID: alice@example.net
Invalid: No binding signature at time 2020-04-15T04:21:37Z
UserID: alice@example.org
UserID: UserAttribute { value (bytes): 558 }
UserID: UserAttribute { value (bytes): 558 }
Invalid: No binding signature at time 2020-04-15T04:21:37Z
Bad Signature: V4(Signature4 { version: 4, typ: SubkeyBinding, issuer: "B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C", pk_algo: RSAEncryptSign, hash_algo: SHA512, hashed_area: [Subpacket { value: IssuerFingerprint(Fingerprint("B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C")) }, Subpacket { value: SignatureCreationTime(1586922030) }, Subpacket { value: KeyFlags(S) }], unhashed_area: [Subpacket { value: Issuer(KeyID("CAD8 42EE D56E 038C")) }, Subpacket { value: EmbeddedSignature(V4(Signature4 { version: 4, typ: PrimaryKeyBinding, issuer: "4557 7E3C 229F 839A 8043 4E40 2CD4 FA1A E190 600D", pk_algo: RSAEncryptSign, hash_algo: SHA512, hashed_area: [Subpacket { value: IssuerFingerprint(Fingerprint("4557 7E3C 229F 839A 8043 4E40 2CD4 FA1A E190 600D")) }, Subpacket { value: SignatureCreationTime(1586922030) }], unhashed_area: [Subpacket { value: Issuer(KeyID("2CD4 FA1A E190 600D")) }], digest_prefix: "BC91", computed_digest: None, level: 0, mpis: RSA { s: 3070 bits: 22C2 32A0 D5A1 C55C 39AC 8133 08AC 9989 2467 A3BA B20D 3C65 E6E8 7A87 04BD D0A0 D6D8 8BDC F89B E014 BF23 B942 8593 CFD0 F48D 68FA 1D5D 946B F891 A871 0437 84A1 9B9A 5F16 0354 54AC AA6F 2EFB DAE1 0270 D540 2817 1624 CBB1 F747 FA14 F48F 9816 0A69 6CCF DA94 DE3A 8E50 02C8 3401 D8A3 EE93 31B2 5B43 0BB7 D071 1145 CAA9 2836 E13F C1E3 A43C 14D6 7140 EBA0 3F13 9EE2 104B 990B 3538 6DA6 E0A0 15A8 C05B D185 A1B6 22E8 EB87 7CF8 9DBD D785 8159 4CDE 0E8B 2331 644F 8C34 42D7 3ED9 163E 8583 1CCD 25F2 B859 6EA2 4B40 7933 D219 05FD 43CC 7477 BAB2 8B56 1232 5EFB 044F 9456 36BF 9D04 0309 4E82 8D62 9024 EEB8 A848 4D2C 2C36 5C16 5C3B 9439 242D C371 C88C 5DCB 98D5 E46F 5EAF E393 7E4D 907E D982 FF22 AE41 401E 52A1 850E 5F29 4585 BBD7 09C7 859D C24B 153F EB36 DA21 CC30 85CB EEF5 C32D 3C7D 27F9 A12E 2DBC 8DFC D1FC F634 0066 CFCB A5C5 3D8D E893 82F3 005A 5B68 D3E4 94B5 7CAB C377 5396 9F3B 7CDC 48F6 4303 6DC8 D2F3 CE60 0AB6 3F98 FE00 0AC3 5DC0 F90D F20A 7377 4207 B066 21B1 } })) }], digest_prefix: "9938", computed_digest: None, level: 0, mpis: RSA { s: 3071 bits: 563D FE6D DF00 0604 977B 7732 51E4 90F0 A513 9F9E D7D8 5964 03C0 51D6 83BF 541A 4817 74B2 33D0 C7B4 04E3 A600 E05C 2E78 B0FE B491 E430 6297 37DF 6EA5 B211 9C1D 836D 49E8 D31D B42B 9BBF 87EE 2FA7 854D ADF6 C422 FC33 FB5B 100B 31AB 6D81 F34C CBE6 6FC3 5CE6 A2AD 768A E9A6 B62D DB69 7A92 1A1A C97A 647E 75B0 A8EA 4CF3 7E79 4838 9A1D 2CEA CB38 0F9D 03EA 9EAF 3ED4 4161 2D02 B3B2 E858 48EF 8983 BEF5 BB0F DD98 B38F 0152 013F 6B2B F973 2602 B83E F31F A6A4 E075 1F00 2F63 8848 5D92 FA29 227E 4309 A1D2 BE09 A094 ABC1 AD2F B56C 2873 82A5 2A5A C7E3 A59C 6DEE 2EF5 E27E 49FA 6DDA 5CEE D642 8D92 AD1D 9B7C DE9F B630 90E2 CC6F 4EC1 2A2D AF91 EDFF 3C8D 4E6D D495 FECA 0531 2D70 1023 EA5B 7E2B 8849 51AD B98E 4E36 11D4 09FA 38B5 D44F FEC7 A53D 1A07 6C5C 0166 0A32 D332 2995 4D73 ADF0 3B2F 11CF FA53 25BB 89AC 053E 00F6 919B 4524 B4BF 5516 2E00 6E2B 0221 B3B2 0D45 599D 2D0E 00C2 9DC5 3836 73DE D604 C7E0 C408 2E86 9753 D1C3 346D C5C2 B4BA 3311 BF3F B80A 03D2 E623 127B D779 } })
Bad Signature: V4(Signature4 { version: 4, typ: PositiveCertification, issuer: "B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C", pk_algo: RSAEncryptSign, hash_algo: SHA512, hashed_area: [Subpacket { value: IssuerFingerprint(Fingerprint("B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C")) }, Subpacket { value: SignatureCreationTime(1586921730) }, Subpacket { value: KeyFlags(CS) }, Subpacket { value: KeyExpirationTime(63072000s) }, Subpacket { value: PreferredSymmetricAlgorithms([AES256, AES192, AES128, TripleDES]) }, Subpacket { value: PreferredHashAlgorithms([SHA512, SHA384, SHA256, SHA224, SHA1]) }, Subpacket { value: PreferredCompressionAlgorithms([Zlib, BZip2, Zip]) }, Subpacket { value: Features(MDC) }, Subpacket { value: KeyServerPreferences(no modify) }], unhashed_area: [Subpacket { value: Issuer(KeyID("CAD8 42EE D56E 038C")) }], digest_prefix: "C353", computed_digest: None, level: 0, mpis: RSA { s: 3072 bits: ABC6 F7FF 6537 D091 7688 647A EF8D 1E73 66C5 2FA8 6888 819D 2D7F BBB9 ACC1 5EDC 8ED3 0FB7 5BAA B0FE DE00 5AAC 6B63 44B6 0088 B7BA E3DC CC41 7913 40BD 76C7 111B A13C 6999 75A7 71C3 36FD FC66 0F05 80FF 429E B6DB 1CF6 5177 BE4C E83B 19E6 8569 338D 0279 A489 31AC 651D 2335 84B2 C38E E186 1849 17F9 1DAE 4A7E F7E8 4419 839E 9E8A 70FF 8176 2BDE A91F 3887 3FAD AE0F 1D47 92BB 3F9F 1012 C002 F77B EBE3 6FDE 4D80 14AD 5E51 2471 3563 A452 ACF3 E521 27F5 25F9 E118 9A4E 5E2D 1E0F 5180 2E30 6B1B DA3C E2EE A601 F461 B4BD C2CD 8D5A 40E0 1637 DEA7 F470 2283 C29A 3A7D 8301 B588 1B62 A501 F2D6 0FF4 9C71 39B3 C9AE C0A7 D609 70E8 03B5 F2FD 83F3 173F BAAF C49F 84B1 F46B 71A0 916D 3151 0990 A42B 8E24 C9D8 DFE8 0A66 6D19 F0FE 5C2A 7009 CFB1 7223 FBC8 47C1 E27C 307F DD5D BAF9 4B7C D82A 9E8C E9C2 A85E 9B41 E47F 75F7 D56E 5760 6282 B2AA 7A3D F876 1EA2 812E 7BA9 35BF 7E70 6928 6670 572F 26E6 B514 2DA8 37B1 E026 48D1 47C8 BDB4 8723 3602 FAC1 5EB4 7089 4AD4 7DAD 2668 996F 2A12 } })
Bad Signature: V4(Signature4 { version: 4, typ: SubkeyBinding, issuer: "B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C", pk_algo: RSAEncryptSign, hash_algo: SHA512, hashed_area: [Subpacket { value: IssuerFingerprint(Fingerprint("B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C")) }, Subpacket { value: SignatureCreationTime(1586921631) }, Subpacket { value: KeyFlags(EtEr) }], unhashed_area: [Subpacket { value: Issuer(KeyID("CAD8 42EE D56E 038C")) }], digest_prefix: "C18A", computed_digest: None, level: 0, mpis: RSA { s: 3065 bits: 013A 16BA F6C3 4FDF EBCD 6D2F 9196 B781 7925 168F D4DE 85C8 F9BB BFD3 5445 FD25 1F60 3830 34C8 809A BFFF 2BAD C43B 6CC4 2D2E 1343 8777 B9A1 8C0C 75A7 9569 F94A 0601 C085 2369 2845 B848 32F5 0E6F 7C88 4543 BEE1 1AAC CC45 70E4 2A53 ED6C B0DB E4F1 AB41 550B 0E11 4E2F 5F8D 6F4F DA92 CE9A 4E37 14AB E5D5 E3EE DDD9 8AAB 4007 7A7F 7EBA C71B D12A 5BC4 6F1D 03E9 D7E2 14D4 B84F D6AC E25F A7E4 107F D672 D3F0 8905 FE82 B76F DDFC E3FC 9FD6 FA9F 496A F41D FD55 C2AB D79F 56A5 1EE4 6062 B1F5 BC1D B369 7A3E 3EB0 C523 F721 8A50 45C6 755B 6978 55DF 1956 4FCB FADF 3A0D 3393 AE45 6E5A 4207 1ED2 D783 D179 18E0 F9D2 4BBB AA38 EAC2 6FAF 82C9 3603 177F A7A9 4D20 9B2E 25BF 03D5 4A75 08FE 3ED6 18BF C6B8 C450 76BC E8EB 5705 F1FB 36A9 E0DC 5AFD BB1E 9902 98E0 67F5 09E7 4CC1 3FE8 18BB FDCF C241 1FA7 BA76 4CED 4CC6 24DE D611 432A D18C CFAA DAA3 2AB7 3EC8 5990 420C 10A2 3D32 3227 0B99 97B6 6D2F F549 BFE5 91F4 E440 78C4 DCC2 2914 1512 90EA 0862 72EF 455C 81E5 5E4B 6F1D 2C08 B28C } })
Bad Signature: V4(Signature4 { version: 4, typ: PositiveCertification, issuer: "B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C", pk_algo: RSAEncryptSign, hash_algo: SHA512, hashed_area: [Subpacket { value: IssuerFingerprint(Fingerprint("B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C")) }, Subpacket { value: SignatureCreationTime(1586921631) }, Subpacket { value: KeyFlags(CS) }, Subpacket { value: KeyExpirationTime(63072000s) }, Subpacket { value: PreferredSymmetricAlgorithms([AES256, AES192, AES128, TripleDES]) }, Subpacket { value: PreferredHashAlgorithms([SHA512, SHA384, SHA256, SHA224, SHA1]) }, Subpacket { value: PreferredCompressionAlgorithms([Zlib, BZip2, Zip]) }, Subpacket { value: Features(MDC) }, Subpacket { value: KeyServerPreferences(no modify) }], unhashed_area: [Subpacket { value: Issuer(KeyID("CAD8 42EE D56E 038C")) }], digest_prefix: "7AE4", computed_digest: None, level: 0, mpis: RSA { s: 3069 bits: 1D2D D6BB FA3C FA5A 56BF 8757 A31A 9804 2AC6 4E07 17FE D3B4 6E00 1C01 34F3 8DF0 C353 353B B6D4 ADAD 501D 5E83 3E71 12E0 11CE 0D9A AA7B 0889 DBFE 7F5E 9573 E85A 7F93 DE7E 4CE7 6669 6DE8 180C 2202 5DD3 7433 0B42 400B 0186 A926 FF9D ACF9 CE62 37FA 2819 69AA 80F3 AB34 F18B 9BC0 FD4D 4A7A 957F C05B 2F4D E51B 6673 5F88 3953 A146 02C6 11A5 1384 BA5D 8993 8F5D 445D 34F0 37CC 98CB E5E3 74C4 AACA 1BC3 2D4D EB2A 3CE6 7F67 B2E8 A3CC 0866 D3D2 05B6 0312 F1F4 5148 AAE9 78B3 518D C01D F205 EA10 95F3 E459 E710 5452 4C6A 1E83 123A A0BF AFDD C9D0 561C 2A2D 4347 C876 E6E1 1062 65B6 6D73 ECD8 7C3F 129C 823B B738 D810 4627 EB57 24B0 C3CE 2B91 250D 4F49 8FF5 61E4 1591 D716 C4A9 B722 9783 7284 E340 90F0 A9CB F00E 1586 EFBF D69A 4BB2 9AA9 398C 64BF 6DFC E914 0F06 15DD 3342 33EF 78F7 16D9 A64C 3B3E DE34 D487 510B BD8E 494E 565A B895 8572 8310 E8A9 0AD7 5D59 8C45 55F7 F948 0603 E656 CB5E D211 1BC5 5D78 7218 C7D2 1807 D45A 12EA 1E83 B823 CC2B 5235 A017 BB7C 0C41 3C79 78E3 } })
$ sq packet dump certificate-with-unsigned-components.asc
Public-Key Packet, old CTB, 397 bytes
Version: 4
Creation time: 2020-04-15 03:33:41 UTC
Pk algo: RSA (Encrypt or Sign)
Pk size: 3072 bits
Fingerprint: 6DE8 B1D9 C41A 34D6 7AB8 9BD2 B6DB 9B1F 716A 9098
KeyID: B6DB 9B1F 716A 9098
User ID Packet, old CTB, 17 bytes
Value: alice@example.org
Signature Packet, old CTB, 468 bytes
Version: 4
Type: PositiveCertification
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: 6DE8 B1D9 C41A 34D6 7AB8 9BD2 B6DB 9B1F 716A 9098
Signature creation time: 2020-04-15 03:33:41 UTC
Key flags: CS
Key expiration time: P730D
Symmetric algo preferences: AES256, AES192, AES128, TripleDES
Hash preferences: SHA512, SHA384, SHA256, SHA224, SHA1
Compression preferences: Zlib, BZip2, Zip
Features: MDC
Keyserver preferences: no modify
Unhashed area:
Issuer: B6DB 9B1F 716A 9098
Digest prefix: B3CE
Level: 0 (signature over data)
User Attribute Packet, new CTB, 558 bytes
JPEG: 539 bytes
Signature Packet, old CTB, 468 bytes
Version: 4
Type: PositiveCertification
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: 6DE8 B1D9 C41A 34D6 7AB8 9BD2 B6DB 9B1F 716A 9098
Signature creation time: 2020-04-15 03:35:16 UTC
Key flags: CS
Key expiration time: P730D
Symmetric algo preferences: AES256, AES192, AES128, TripleDES
Hash preferences: SHA512, SHA384, SHA256, SHA224, SHA1
Compression preferences: Zlib, BZip2, Zip
Features: MDC
Keyserver preferences: no modify
Unhashed area:
Issuer: B6DB 9B1F 716A 9098
Digest prefix: 1A9A
Level: 0 (signature over data)
Public-Subkey Packet, old CTB, 397 bytes
Version: 4
Creation time: 2020-04-15 03:33:41 UTC
Pk algo: RSA (Encrypt or Sign)
Pk size: 3072 bits
Fingerprint: D41E 4059 BFB0 19D4 3623 0732 3BE1 8580 C43F 434B
KeyID: 3BE1 8580 C43F 434B
Signature Packet, old CTB, 438 bytes
Version: 4
Type: SubkeyBinding
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: 6DE8 B1D9 C41A 34D6 7AB8 9BD2 B6DB 9B1F 716A 9098
Signature creation time: 2020-04-15 03:33:41 UTC
Key flags: EtEr
Unhashed area:
Issuer: B6DB 9B1F 716A 9098
Digest prefix: F334
Level: 0 (signature over data)
Public-Subkey Packet, old CTB, 397 bytes
Version: 4
Creation time: 2020-04-15 03:40:12 UTC
Pk algo: RSA (Encrypt or Sign)
Pk size: 3072 bits
Fingerprint: E206 C803 19DF 95D1 BD00 AEC3 41F1 7884 8257 A420
KeyID: 41F1 7884 8257 A420
Signature Packet, old CTB, 876 bytes
Version: 4
Type: SubkeyBinding
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: 6DE8 B1D9 C41A 34D6 7AB8 9BD2 B6DB 9B1F 716A 9098
Signature creation time: 2020-04-15 03:40:12 UTC
Key flags: S
Unhashed area:
Issuer: B6DB 9B1F 716A 9098
Embedded signature:
Signature Packet
Version: 4
Type: PrimaryKeyBinding
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: E206 C803 19DF 95D1 BD00 AEC3 41F1 7884 8257 A420
Signature creation time: 2020-04-15 03:40:12 UTC
Unhashed area:
Issuer: 41F1 7884 8257 A420
Digest prefix: FB50
Level: 0 (signature over data)
Digest prefix: C90E
Level: 0 (signature over data)
User ID Packet, old CTB, 17 bytes
Value: alice@example.net
Signature Packet, old CTB, 468 bytes
Version: 4
Type: PositiveCertification
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C
Signature creation time: 2020-04-15 03:33:51 UTC
Key flags: CS
Key expiration time: P730D
Symmetric algo preferences: AES256, AES192, AES128, TripleDES
Hash preferences: SHA512, SHA384, SHA256, SHA224, SHA1
Compression preferences: Zlib, BZip2, Zip
Features: MDC
Keyserver preferences: no modify
Unhashed area:
Issuer: CAD8 42EE D56E 038C
Digest prefix: 7AE4
Level: 0 (signature over data)
User Attribute Packet, new CTB, 558 bytes
JPEG: 539 bytes
Signature Packet, old CTB, 468 bytes
Version: 4
Type: PositiveCertification
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C
Signature creation time: 2020-04-15 03:35:30 UTC
Key flags: CS
Key expiration time: P730D
Symmetric algo preferences: AES256, AES192, AES128, TripleDES
Hash preferences: SHA512, SHA384, SHA256, SHA224, SHA1
Compression preferences: Zlib, BZip2, Zip
Features: MDC
Keyserver preferences: no modify
Unhashed area:
Issuer: CAD8 42EE D56E 038C
Digest prefix: C353
Level: 0 (signature over data)
Public-Subkey Packet, old CTB, 397 bytes
Version: 4
Creation time: 2020-04-15 03:33:51 UTC
Pk algo: RSA (Encrypt or Sign)
Pk size: 3072 bits
Fingerprint: 3CCD B850 CD8F 0D97 51EF 2723 0184 EC83 25CB 8B7F
KeyID: 0184 EC83 25CB 8B7F
Signature Packet, old CTB, 438 bytes
Version: 4
Type: SubkeyBinding
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C
Signature creation time: 2020-04-15 03:33:51 UTC
Key flags: EtEr
Unhashed area:
Issuer: CAD8 42EE D56E 038C
Digest prefix: C18A
Level: 0 (signature over data)
Public-Subkey Packet, old CTB, 397 bytes
Version: 4
Creation time: 2020-04-15 03:40:30 UTC
Pk algo: RSA (Encrypt or Sign)
Pk size: 3072 bits
Fingerprint: 4557 7E3C 229F 839A 8043 4E40 2CD4 FA1A E190 600D
KeyID: 2CD4 FA1A E190 600D
Signature Packet, old CTB, 876 bytes
Version: 4
Type: SubkeyBinding
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: B0DD C81A D947 F104 B5AF 2A55 CAD8 42EE D56E 038C
Signature creation time: 2020-04-15 03:40:30 UTC
Key flags: S
Unhashed area:
Issuer: CAD8 42EE D56E 038C
Embedded signature:
Signature Packet
Version: 4
Type: PrimaryKeyBinding
Pk algo: RSA (Encrypt or Sign)
Hash algo: SHA512
Hashed area:
Issuer Fingerprint: 4557 7E3C 229F 839A 8043 4E40 2CD4 FA1A E190 600D
Signature creation time: 2020-04-15 03:40:30 UTC
Unhashed area:
Issuer: 2CD4 FA1A E190 600D
Digest prefix: BC91
Level: 0 (signature over data)
Digest prefix: 9938
Level: 0 (signature over data)