blob: db0f00d3b7c9119cab8a7a54e952e31290a00f21 [file] [log] [blame]
This is an otherwise "valid" input to ParseCertificate(), however there is a
trailing NULL after the signature field.
$ openssl asn1parse -i < [CERTIFICATE]
0:d=0 hl=2 l= 14 cons: SEQUENCE
2:d=1 hl=2 l= 2 cons: SEQUENCE
4:d=2 hl=2 l= 0 prim: NULL
6:d=1 hl=2 l= 2 cons: SEQUENCE
8:d=2 hl=2 l= 0 prim: NULL
10:d=1 hl=2 l= 2 prim: BIT STRING
14:d=1 hl=2 l= 0 prim: NULL
-----BEGIN CERTIFICATE-----
MA4wAgUAMAIFAAMCAKwFAA==
-----END CERTIFICATE-----
ERROR: Unconsumed data inside Certificate SEQUENCE
-----BEGIN ERRORS-----
RVJST1I6IFVuY29uc3VtZWQgZGF0YSBpbnNpZGUgQ2VydGlmaWNhdGUgU0VRVUVOQ0UK
-----END ERRORS-----