-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2alpha2
-
generic
-
generic
-
Verified
When trying to parse a PKCS#10 certificate request produced by the Sun package, a commercial ASN.1 parser produces the following error message:
laguna{luehe}360: a.out -d /tmp/certReq
CertificationRequest SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 623
info CertificationRequestInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 559
version INTEGER: tag = [UNIVERSAL 2] primitive; length = 1
0
subject Name CHOICE
distinguishedName DistinguishedName SEQUENCE OF: tag = [UNIVERSAL 16] constructed; length = 72
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 11
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 9
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 6 }
value AttributeValue ANY
0x13025553
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 18
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 16
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 10 }
value AttributeValue ANY
0x130950616c6f20416c746f
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 19
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 17
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 11 }
value AttributeValue ANY
0x130a41636d6520436f72702e
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 16
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 14
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 3 }
value AttributeValue ANY
0x130744722044756b65
pubKeyInfo SubjectPublicKeyInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 438
algorithm AlgID SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 298
algorithm OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 5
{ 1 3 14 3 2 12 }
parameters AlgParams ANY
0x3082011f02818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f...
pubKey BitString BIT STRING: tag = [UNIVERSAL 3] primitive; length = 133
0x0002818100a8ddffbc629a980e70bae7b8a0c3d6d9224c778b77a971caede3d3db49b0...
attributes Attributes SET OF: tag = [0] constructed; length = 38
Attribute SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 36
type OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 2
{ 1 2 3 }
D0047E: Tag not recognized: [UNIVERSAL 16]; check element #1 (type: Attribute) of field 'attributes' (type: Attributes) of field 'info' (type: CertificationRequestInfo) of PDU #32 'CertificationRequest'.
*SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 30
<skipped>
D0049E: Field omitted: "values"; check element #1 (type: Attribute) of field 'attributes' (type: Attributes) of field 'info' (type: CertificationRequestInfo) of PDU #32 'CertificationRequest'.
algorithm AlgID SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 9
algorithm OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 5
{ 1 3 14 3 2 13 }
parameters AlgParams ANY
0x0500
signature BitString BIT STRING: tag = [UNIVERSAL 3] primitive; length = 47
0x00302c0214447a9efb93bbfb6cd74b6f0d1cd7a7c44f3458d502141aa13f4e0f57b734...
a.out: Cannot decode data
laguna{luehe}360: a.out -d /tmp/certReq
CertificationRequest SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 623
info CertificationRequestInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 559
version INTEGER: tag = [UNIVERSAL 2] primitive; length = 1
0
subject Name CHOICE
distinguishedName DistinguishedName SEQUENCE OF: tag = [UNIVERSAL 16] constructed; length = 72
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 11
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 9
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 6 }
value AttributeValue ANY
0x13025553
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 18
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 16
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 10 }
value AttributeValue ANY
0x130950616c6f20416c746f
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 19
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 17
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 11 }
value AttributeValue ANY
0x130a41636d6520436f72702e
RelativeDistinguishedName SET OF: tag = [UNIVERSAL 17] constructed; length = 16
AttributeValueAssertion SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 14
objid OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 3
{ 2 5 4 3 }
value AttributeValue ANY
0x130744722044756b65
pubKeyInfo SubjectPublicKeyInfo SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 438
algorithm AlgID SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 298
algorithm OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 5
{ 1 3 14 3 2 12 }
parameters AlgParams ANY
0x3082011f02818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f...
pubKey BitString BIT STRING: tag = [UNIVERSAL 3] primitive; length = 133
0x0002818100a8ddffbc629a980e70bae7b8a0c3d6d9224c778b77a971caede3d3db49b0...
attributes Attributes SET OF: tag = [0] constructed; length = 38
Attribute SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 36
type OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 2
{ 1 2 3 }
D0047E: Tag not recognized: [UNIVERSAL 16]; check element #1 (type: Attribute) of field 'attributes' (type: Attributes) of field 'info' (type: CertificationRequestInfo) of PDU #32 'CertificationRequest'.
*SKIPPED*: tag = [UNIVERSAL 16] constructed; length = 30
<skipped>
D0049E: Field omitted: "values"; check element #1 (type: Attribute) of field 'attributes' (type: Attributes) of field 'info' (type: CertificationRequestInfo) of PDU #32 'CertificationRequest'.
algorithm AlgID SEQUENCE: tag = [UNIVERSAL 16] constructed; length = 9
algorithm OBJECT IDENTIFIER: tag = [UNIVERSAL 6] primitive; length = 5
{ 1 3 14 3 2 13 }
parameters AlgParams ANY
0x0500
signature BitString BIT STRING: tag = [UNIVERSAL 3] primitive; length = 47
0x00302c0214447a9efb93bbfb6cd74b6f0d1cd7a7c44f3458d502141aa13f4e0f57b734...
a.out: Cannot decode data