| Index: net/data/parse_ocsp_unittest/missing_response.pem
|
| diff --git a/net/data/parse_ocsp_unittest/missing_response.pem b/net/data/parse_ocsp_unittest/missing_response.pem
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2f16deaf74ad519bb91712ed91d4f89403f2e783
|
| --- /dev/null
|
| +++ b/net/data/parse_ocsp_unittest/missing_response.pem
|
| @@ -0,0 +1,114 @@
|
| +# Missing a response for the cert
|
| +$ openssl asn1parse -i < [OCSP RESPONSE]
|
| + 0:d=0 hl=3 l= 221 cons: SEQUENCE
|
| + 3:d=1 hl=2 l= 1 prim: ENUMERATED :00
|
| + 6:d=1 hl=3 l= 215 cons: cont [ 0 ]
|
| + 9:d=2 hl=3 l= 212 cons: SEQUENCE
|
| + 12:d=3 hl=2 l= 9 prim: OBJECT :Basic OCSP Response
|
| + 23:d=3 hl=3 l= 198 prim: OCTET STRING
|
| + 0:d=0 hl=3 l= 195 cons: SEQUENCE
|
| + 3:d=1 hl=2 l= 46 cons: SEQUENCE
|
| + 5:d=2 hl=2 l= 3 cons: cont [ 0 ]
|
| + 7:d=3 hl=2 l= 1 prim: INTEGER :01
|
| + 10:d=2 hl=2 l= 20 cons: cont [ 1 ]
|
| + 12:d=3 hl=2 l= 18 cons: SEQUENCE
|
| + 14:d=4 hl=2 l= 16 cons: SET
|
| + 16:d=5 hl=2 l= 14 cons: SEQUENCE
|
| + 18:d=6 hl=2 l= 3 prim: OBJECT :commonName
|
| + 23:d=6 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
|
| + 32:d=2 hl=2 l= 15 prim: GENERALIZEDTIME :20160217114335Z
|
| + 49:d=2 hl=2 l= 0 cons: SEQUENCE
|
| + 51:d=1 hl=2 l= 13 cons: SEQUENCE
|
| + 53:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
|
| + 64:d=2 hl=2 l= 0 prim: NULL
|
| + 66:d=1 hl=3 l= 129 prim: BIT STRING
|
| +-----BEGIN OCSP RESPONSE-----
|
| +MIHdCgEAoIHXMIHUBgkrBgEFBQcwAQEEgcYwgcMwLqADAgEBoRQwEjEQMA4GA1UEAxMHVGVzdCB
|
| +DQRgPMjAxNjAyMTcxMTQzMzVaMAAwDQYJKoZIhvcNAQEFBQADgYEAe6guCXB5qFE5x/UpQMQ50Z
|
| +r27pK9KVBvoXj8MDJz8TGREwwewzFW2Th4E4GQ3KlSPFQga7QyFfN3/7Dh6+8JQE0LfBnDBp5hi
|
| +cieiCmYz5qEX1ogR5qhEEbOqqbC+dAgOtfq5chyEbisWXxv1zJAtV9rhSQCyJcmzU8zRkDbkhY=
|
| +-----END OCSP RESPONSE-----
|
| +
|
| +$ openssl asn1parse -i < [CA CERTIFICATE]
|
| + 0:d=0 hl=4 l= 408 cons: SEQUENCE
|
| + 4:d=1 hl=4 l= 257 cons: SEQUENCE
|
| + 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
|
| + 10:d=3 hl=2 l= 1 prim: INTEGER :02
|
| + 13:d=2 hl=2 l= 1 prim: INTEGER :00
|
| + 16:d=2 hl=2 l= 13 cons: SEQUENCE
|
| + 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
|
| + 29:d=3 hl=2 l= 0 prim: NULL
|
| + 31:d=2 hl=2 l= 18 cons: SEQUENCE
|
| + 33:d=3 hl=2 l= 16 cons: SET
|
| + 35:d=4 hl=2 l= 14 cons: SEQUENCE
|
| + 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
|
| + 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
|
| + 51:d=2 hl=2 l= 30 cons: SEQUENCE
|
| + 53:d=3 hl=2 l= 13 prim: UTCTIME :160217164335Z
|
| + 68:d=3 hl=2 l= 13 prim: UTCTIME :260214164335Z
|
| + 83:d=2 hl=2 l= 18 cons: SEQUENCE
|
| + 85:d=3 hl=2 l= 16 cons: SET
|
| + 87:d=4 hl=2 l= 14 cons: SEQUENCE
|
| + 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
|
| + 94:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
|
| + 103:d=2 hl=3 l= 159 cons: SEQUENCE
|
| + 106:d=3 hl=2 l= 13 cons: SEQUENCE
|
| + 108:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
|
| + 119:d=4 hl=2 l= 0 prim: NULL
|
| + 121:d=3 hl=3 l= 141 prim: BIT STRING
|
| + 265:d=1 hl=2 l= 13 cons: SEQUENCE
|
| + 267:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
|
| + 278:d=2 hl=2 l= 0 prim: NULL
|
| + 280:d=1 hl=3 l= 129 prim: BIT STRING
|
| +-----BEGIN CA CERTIFICATE-----
|
| +MIIBmDCCAQGgAwIBAgIBADANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
|
| +2MDIxNzE2NDMzNVoXDTI2MDIxNDE2NDMzNVowEjEQMA4GA1UEAxMHVGVzdCBDQTCBnzANBgkqhk
|
| +iG9w0BAQEFAAOBjQAwgYkCgYEApRGdydM+hBl3FK9BMy2i0GuR3H9iASfSoirvHgSCPRJ91AbMf
|
| +/RlOprdI8HHFqNC5FfTipY6zYnHkMaHAM5w8FdqgbDRoJmMy2a37EKHhb4s8jF76PlJrD27n+3t
|
| +5rmyIOqhXV8tVsIKtKuXVjUsBFSmMsF8TJbv6EjtJxVLhuUCAwEAATANBgkqhkiG9w0BAQUFAAO
|
| +BgQAZI4He2sX/RYcL3jwdDmTAyyMMmSeQX4JHdH2MptBehktuq32YG5Lb4dJJpMYvatZYmOurcD
|
| +hduryAgVxT2mEbpbQ9oZDjZHC6AwxECSJS/HP8llURBfJU7tanXBk6NiIpkKAYm6RIUq6sodVTB
|
| +HxcagPzH2K9s99RKXBBjL7wgA==
|
| +-----END CA CERTIFICATE-----
|
| +
|
| +$ openssl asn1parse -i < [CERTIFICATE]
|
| + 0:d=0 hl=4 l= 410 cons: SEQUENCE
|
| + 4:d=1 hl=4 l= 259 cons: SEQUENCE
|
| + 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
|
| + 10:d=3 hl=2 l= 1 prim: INTEGER :02
|
| + 13:d=2 hl=2 l= 1 prim: INTEGER :03
|
| + 16:d=2 hl=2 l= 13 cons: SEQUENCE
|
| + 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
|
| + 29:d=3 hl=2 l= 0 prim: NULL
|
| + 31:d=2 hl=2 l= 18 cons: SEQUENCE
|
| + 33:d=3 hl=2 l= 16 cons: SET
|
| + 35:d=4 hl=2 l= 14 cons: SEQUENCE
|
| + 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
|
| + 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
|
| + 51:d=2 hl=2 l= 30 cons: SEQUENCE
|
| + 53:d=3 hl=2 l= 13 prim: UTCTIME :160217164335Z
|
| + 68:d=3 hl=2 l= 13 prim: UTCTIME :260214164335Z
|
| + 83:d=2 hl=2 l= 20 cons: SEQUENCE
|
| + 85:d=3 hl=2 l= 18 cons: SET
|
| + 87:d=4 hl=2 l= 16 cons: SEQUENCE
|
| + 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
|
| + 94:d=5 hl=2 l= 9 prim: PRINTABLESTRING :Test Cert
|
| + 105:d=2 hl=3 l= 159 cons: SEQUENCE
|
| + 108:d=3 hl=2 l= 13 cons: SEQUENCE
|
| + 110:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
|
| + 121:d=4 hl=2 l= 0 prim: NULL
|
| + 123:d=3 hl=3 l= 141 prim: BIT STRING
|
| + 267:d=1 hl=2 l= 13 cons: SEQUENCE
|
| + 269:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
|
| + 280:d=2 hl=2 l= 0 prim: NULL
|
| + 282:d=1 hl=3 l= 129 prim: BIT STRING
|
| +-----BEGIN CERTIFICATE-----
|
| +MIIBmjCCAQOgAwIBAgIBAzANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
|
| +2MDIxNzE2NDMzNVoXDTI2MDIxNDE2NDMzNVowFDESMBAGA1UEAxMJVGVzdCBDZXJ0MIGfMA0GCS
|
| +qGSIb3DQEBAQUAA4GNADCBiQKBgQCmC4zqGNC+KHEtS+PnHTwZKfnrCYycpIa2htLwJ2V+LBdtZ
|
| +YAWNjJlPdDsayPiu0LzW2sN+E+js3mKVEX0qfzK11vO/17KkXei2G7/nzm8qgOmafyojlnQxYEY
|
| +DXcW9WlMEAMU1MFuOkXeFwMkQUAAuOEc27BQAK7JX85346ivdQIDAQABMA0GCSqGSIb3DQEBBQU
|
| +AA4GBADIktrU1l+Og5OsdNW01mav5ajZnpBEaIx1M5PvEd4Cf4OKhGneAXeMluLAs2Ypi4zQKHi
|
| +Zj2YcWe5c36QDpryWQ5czcNX5zU2FLspAyD3zgUDJDIIykqV8xhph5Q8eiOgV0aM2oW4qk5AxfR
|
| +9I9NNsEWDJcJ7OGHjRsThaOrth4
|
| +-----END CERTIFICATE-----
|
|
|