blob: 8c9cc909a5090e725d5bb23473f4f3ed7062bb90 [file] [log] [blame]
This is an otherwise valid input to ParseSignature(), however the signature was
changed from a BIT STRING to an OCTET STRING.
$ openssl asn1parse -i < [CERTIFICATE]
0:d=0 hl=2 l= 12 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: OCTET STRING [HEX DUMP]:0102
-----BEGIN CERTIFICATE-----
MAwwAgUAMAIFAAQCAQI=
-----END CERTIFICATE-----
[Error] Couldn't read Certificate.signatureValue as BIT STRING
-----BEGIN ERRORS-----
W0Vycm9yXSBDb3VsZG4ndCByZWFkIENlcnRpZmljYXRlLnNpZ25hdHVyZVZhbHVlIGFzIEJJVCBTVFJJTkcK
-----END ERRORS-----