Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: net/data/parse_ocsp_unittest/missing_response.pem

Issue 1541213002: Adding OCSP Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add note about DEFAULT strictness. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Missing a response for the cert
2 $ openssl asn1parse -i < [OCSP RESPONSE]
3 0:d=0 hl=3 l= 221 cons: SEQUENCE
4 3:d=1 hl=2 l= 1 prim: ENUMERATED :00
5 6:d=1 hl=3 l= 215 cons: cont [ 0 ]
6 9:d=2 hl=3 l= 212 cons: SEQUENCE
7 12:d=3 hl=2 l= 9 prim: OBJECT :Basic OCSP Response
8 23:d=3 hl=3 l= 198 prim: OCTET STRING
9 0:d=0 hl=3 l= 195 cons: SEQUENCE
10 3:d=1 hl=2 l= 46 cons: SEQUENCE
11 5:d=2 hl=2 l= 3 cons: cont [ 0 ]
12 7:d=3 hl=2 l= 1 prim: INTEGER :01
13 10:d=2 hl=2 l= 20 cons: cont [ 1 ]
14 12:d=3 hl=2 l= 18 cons: SEQUENCE
15 14:d=4 hl=2 l= 16 cons: SET
16 16:d=5 hl=2 l= 14 cons: SEQUENCE
17 18:d=6 hl=2 l= 3 prim: OBJECT :commonName
18 23:d=6 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
19 32:d=2 hl=2 l= 15 prim: GENERALIZEDTIME :20160217114335Z
20 49:d=2 hl=2 l= 0 cons: SEQUENCE
21 51:d=1 hl=2 l= 13 cons: SEQUENCE
22 53:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
23 64:d=2 hl=2 l= 0 prim: NULL
24 66:d=1 hl=3 l= 129 prim: BIT STRING
25 -----BEGIN OCSP RESPONSE-----
26 MIHdCgEAoIHXMIHUBgkrBgEFBQcwAQEEgcYwgcMwLqADAgEBoRQwEjEQMA4GA1UEAxMHVGVzdCB
27 DQRgPMjAxNjAyMTcxMTQzMzVaMAAwDQYJKoZIhvcNAQEFBQADgYEAe6guCXB5qFE5x/UpQMQ50Z
28 r27pK9KVBvoXj8MDJz8TGREwwewzFW2Th4E4GQ3KlSPFQga7QyFfN3/7Dh6+8JQE0LfBnDBp5hi
29 cieiCmYz5qEX1ogR5qhEEbOqqbC+dAgOtfq5chyEbisWXxv1zJAtV9rhSQCyJcmzU8zRkDbkhY=
30 -----END OCSP RESPONSE-----
31
32 $ openssl asn1parse -i < [CA CERTIFICATE]
33 0:d=0 hl=4 l= 408 cons: SEQUENCE
34 4:d=1 hl=4 l= 257 cons: SEQUENCE
35 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
36 10:d=3 hl=2 l= 1 prim: INTEGER :02
37 13:d=2 hl=2 l= 1 prim: INTEGER :00
38 16:d=2 hl=2 l= 13 cons: SEQUENCE
39 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
40 29:d=3 hl=2 l= 0 prim: NULL
41 31:d=2 hl=2 l= 18 cons: SEQUENCE
42 33:d=3 hl=2 l= 16 cons: SET
43 35:d=4 hl=2 l= 14 cons: SEQUENCE
44 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
45 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
46 51:d=2 hl=2 l= 30 cons: SEQUENCE
47 53:d=3 hl=2 l= 13 prim: UTCTIME :160217164335Z
48 68:d=3 hl=2 l= 13 prim: UTCTIME :260214164335Z
49 83:d=2 hl=2 l= 18 cons: SEQUENCE
50 85:d=3 hl=2 l= 16 cons: SET
51 87:d=4 hl=2 l= 14 cons: SEQUENCE
52 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
53 94:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
54 103:d=2 hl=3 l= 159 cons: SEQUENCE
55 106:d=3 hl=2 l= 13 cons: SEQUENCE
56 108:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
57 119:d=4 hl=2 l= 0 prim: NULL
58 121:d=3 hl=3 l= 141 prim: BIT STRING
59 265:d=1 hl=2 l= 13 cons: SEQUENCE
60 267:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
61 278:d=2 hl=2 l= 0 prim: NULL
62 280:d=1 hl=3 l= 129 prim: BIT STRING
63 -----BEGIN CA CERTIFICATE-----
64 MIIBmDCCAQGgAwIBAgIBADANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
65 2MDIxNzE2NDMzNVoXDTI2MDIxNDE2NDMzNVowEjEQMA4GA1UEAxMHVGVzdCBDQTCBnzANBgkqhk
66 iG9w0BAQEFAAOBjQAwgYkCgYEApRGdydM+hBl3FK9BMy2i0GuR3H9iASfSoirvHgSCPRJ91AbMf
67 /RlOprdI8HHFqNC5FfTipY6zYnHkMaHAM5w8FdqgbDRoJmMy2a37EKHhb4s8jF76PlJrD27n+3t
68 5rmyIOqhXV8tVsIKtKuXVjUsBFSmMsF8TJbv6EjtJxVLhuUCAwEAATANBgkqhkiG9w0BAQUFAAO
69 BgQAZI4He2sX/RYcL3jwdDmTAyyMMmSeQX4JHdH2MptBehktuq32YG5Lb4dJJpMYvatZYmOurcD
70 hduryAgVxT2mEbpbQ9oZDjZHC6AwxECSJS/HP8llURBfJU7tanXBk6NiIpkKAYm6RIUq6sodVTB
71 HxcagPzH2K9s99RKXBBjL7wgA==
72 -----END CA CERTIFICATE-----
73
74 $ openssl asn1parse -i < [CERTIFICATE]
75 0:d=0 hl=4 l= 410 cons: SEQUENCE
76 4:d=1 hl=4 l= 259 cons: SEQUENCE
77 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
78 10:d=3 hl=2 l= 1 prim: INTEGER :02
79 13:d=2 hl=2 l= 1 prim: INTEGER :03
80 16:d=2 hl=2 l= 13 cons: SEQUENCE
81 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
82 29:d=3 hl=2 l= 0 prim: NULL
83 31:d=2 hl=2 l= 18 cons: SEQUENCE
84 33:d=3 hl=2 l= 16 cons: SET
85 35:d=4 hl=2 l= 14 cons: SEQUENCE
86 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
87 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
88 51:d=2 hl=2 l= 30 cons: SEQUENCE
89 53:d=3 hl=2 l= 13 prim: UTCTIME :160217164335Z
90 68:d=3 hl=2 l= 13 prim: UTCTIME :260214164335Z
91 83:d=2 hl=2 l= 20 cons: SEQUENCE
92 85:d=3 hl=2 l= 18 cons: SET
93 87:d=4 hl=2 l= 16 cons: SEQUENCE
94 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
95 94:d=5 hl=2 l= 9 prim: PRINTABLESTRING :Test Cert
96 105:d=2 hl=3 l= 159 cons: SEQUENCE
97 108:d=3 hl=2 l= 13 cons: SEQUENCE
98 110:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
99 121:d=4 hl=2 l= 0 prim: NULL
100 123:d=3 hl=3 l= 141 prim: BIT STRING
101 267:d=1 hl=2 l= 13 cons: SEQUENCE
102 269:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
103 280:d=2 hl=2 l= 0 prim: NULL
104 282:d=1 hl=3 l= 129 prim: BIT STRING
105 -----BEGIN CERTIFICATE-----
106 MIIBmjCCAQOgAwIBAgIBAzANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
107 2MDIxNzE2NDMzNVoXDTI2MDIxNDE2NDMzNVowFDESMBAGA1UEAxMJVGVzdCBDZXJ0MIGfMA0GCS
108 qGSIb3DQEBAQUAA4GNADCBiQKBgQCmC4zqGNC+KHEtS+PnHTwZKfnrCYycpIa2htLwJ2V+LBdtZ
109 YAWNjJlPdDsayPiu0LzW2sN+E+js3mKVEX0qfzK11vO/17KkXei2G7/nzm8qgOmafyojlnQxYEY
110 DXcW9WlMEAMU1MFuOkXeFwMkQUAAuOEc27BQAK7JX85346ivdQIDAQABMA0GCSqGSIb3DQEBBQU
111 AA4GBADIktrU1l+Og5OsdNW01mav5ajZnpBEaIx1M5PvEd4Cf4OKhGneAXeMluLAs2Ypi4zQKHi
112 Zj2YcWe5c36QDpryWQ5czcNX5zU2FLspAyD3zgUDJDIIykqV8xhph5Q8eiOgV0aM2oW4qk5AxfR
113 9I9NNsEWDJcJ7OGHjRsThaOrth4
114 -----END CERTIFICATE-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698