-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
None
-
1.2alpha
-
generic
-
generic
-
Verified
When trying to parse the PKCS#7 formatted signature block file produced by javakey, a commercial ASN.1 parser produces the following error message. This means that the current format of the signature block file is not compliant with the PKCS#7 format.
laguna{luehe}258: a.out -b ~/META-INF/LUEHESIG.DSA
ContentInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 922
contentType OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 9
{ 1 2 840 1113549 1 7 2 }
content : tag = [0] constructed; length = 907
Content ANY
0x30820387020101310b300906052b0e03021a05003081b906092a8648c3fb4d010701a0...
SignedData SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 903
version INTEGER: tag = [UNIVERSAL 2] primitive; length = 1
1
digestAlgorithms DigestAlgorithms SET OF: tag = [UNIVERSAL 17] constructed; length = 11
AlgID SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 9
algorithm OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 5
{ 1 3 14 3 2 26 }
parameters AlgParams ANY
0x0500
contentInfo ContentInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 185
contentType OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 9
{ 1 2 840 1113549 1 7 1 }
content : tag = [0] constructed; length = 171
Content ANY
0x0481a85369676e61747572652d56657273696f6e3a20312e300d0a0d0a4e616d653a20...
signerInfos SignerInfos SET OF: tag = [UNIVERSAL 17] constructed; length = 521
SignerInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 517
D0047E: Tag not recognized: [UNIVERSAL 16]; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 453
<skipped>
D0047E: Tag not recognized: [UNIVERSAL 16]; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 9
<skipped>
D0047E: Tag not recognized: [UNIVERSAL 3]; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 3] primitive; length = 47
<skipped>
D0049E: Field omitted: "version"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "issuerAndSerialNumber"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "digestAlgorithm"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "digestEncryptionAlgorithm"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "encryptedDigest"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0047E: Tag not recognized: [UNIVERSAL 17]; check PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 17] constructed; length = 0
<skipped>
D0047E: Tag not recognized: [UNIVERSAL 17]; check PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 17] constructed; length = 169
<skipped>
a.out: Cannot decode data
laguna{luehe}258: a.out -b ~/META-INF/LUEHESIG.DSA
ContentInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 922
contentType OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 9
{ 1 2 840 1113549 1 7 2 }
content : tag = [0] constructed; length = 907
Content ANY
0x30820387020101310b300906052b0e03021a05003081b906092a8648c3fb4d010701a0...
SignedData SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 903
version INTEGER: tag = [UNIVERSAL 2] primitive; length = 1
1
digestAlgorithms DigestAlgorithms SET OF: tag = [UNIVERSAL 17] constructed; length = 11
AlgID SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 9
algorithm OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 5
{ 1 3 14 3 2 26 }
parameters AlgParams ANY
0x0500
contentInfo ContentInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 185
contentType OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 9
{ 1 2 840 1113549 1 7 1 }
content : tag = [0] constructed; length = 171
Content ANY
0x0481a85369676e61747572652d56657273696f6e3a20312e300d0a0d0a4e616d653a20...
signerInfos SignerInfos SET OF: tag = [UNIVERSAL 17] constructed; length = 521
SignerInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 517
D0047E: Tag not recognized: [UNIVERSAL 16]; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 453
<skipped>
D0047E: Tag not recognized: [UNIVERSAL 16]; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 9
<skipped>
D0047E: Tag not recognized: [UNIVERSAL 3]; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 3] primitive; length = 47
<skipped>
D0049E: Field omitted: "version"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "issuerAndSerialNumber"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "digestAlgorithm"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "digestEncryptionAlgorithm"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0049E: Field omitted: "encryptedDigest"; check element #1 (type: SignerInfo) of field 'signerInfos' (type: SignerInfos) of PDU #25 'SignedData'.
D0047E: Tag not recognized: [UNIVERSAL 17]; check PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 17] constructed; length = 0
<skipped>
D0047E: Tag not recognized: [UNIVERSAL 17]; check PDU #25 'SignedData'.
*SKIPPED*: tag = [UNIVERSAL 17] constructed; length = 169
<skipped>
a.out: Cannot decode data
- relates to
-
JDK-4111951 PKCS #7 OIDS incorrect ... code signing not interoperable
-
- Closed
-