| Index: net/data/parse_certificate_unittest/tbs_v2_extensions.pem
|
| diff --git a/net/data/parse_certificate_unittest/tbs_v2_extensions.pem b/net/data/parse_certificate_unittest/tbs_v2_extensions.pem
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3c0c772691454f977bf0cbaaa030d5451ad53839
|
| --- /dev/null
|
| +++ b/net/data/parse_certificate_unittest/tbs_v2_extensions.pem
|
| @@ -0,0 +1,28 @@
|
| +This is a v2 certificate which contains extensions. This is invalid since v2
|
| +does not have extensions defined.
|
| +
|
| +
|
| +
|
| +-----BEGIN TBS CERTIFICATE-----
|
| +MCigAwIBAQIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfOjBTADBAHd
|
| +-----END TBS CERTIFICATE-----
|
| +
|
| +$ openssl asn1parse -i < [TBS CERTIFICATE]
|
| + 0:d=0 hl=2 l= 40 cons: SEQUENCE
|
| + 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
|
| + 4:d=2 hl=2 l= 1 prim: INTEGER :01
|
| + 7:d=1 hl=2 l= 1 prim: INTEGER :01
|
| + 10:d=1 hl=2 l= 3 cons: SEQUENCE
|
| + 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
|
| + 15:d=1 hl=2 l= 3 cons: SEQUENCE
|
| + 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
|
| + 20:d=1 hl=2 l= 3 cons: SEQUENCE
|
| + 22:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
|
| + 25:d=1 hl=2 l= 3 cons: SEQUENCE
|
| + 27:d=2 hl=2 l= 1 prim: OCTET STRING :
|
| +
|
| + 30:d=1 hl=2 l= 3 cons: SEQUENCE
|
| + 32:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
|
| + 35:d=1 hl=2 l= 5 cons: cont [ 3 ]
|
| + 37:d=2 hl=2 l= 3 cons: SEQUENCE
|
| + 39:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD
|
|
|