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

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

Issue 1541213002: Adding OCSP Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing verification. 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 Signed through an intermediate without the correct key usage
2 $ openssl asn1parse -i < [OCSP RESPONSE]
3 0:d=0 hl=4 l= 755 cons: SEQUENCE
4 4:d=1 hl=2 l= 1 prim: ENUMERATED :00
5 7:d=1 hl=4 l= 748 cons: cont [ 0 ]
6 11:d=2 hl=4 l= 744 cons: SEQUENCE
7 15:d=3 hl=2 l= 9 prim: OBJECT :Basic OCSP Response
8 26:d=3 hl=4 l= 729 prim: OCTET STRING
9 0:d=0 hl=4 l= 725 cons: SEQUENCE
10 4:d=1 hl=3 l= 140 cons: SEQUENCE
11 7:d=2 hl=2 l= 3 cons: cont [ 0 ]
12 9:d=3 hl=2 l= 1 prim: INTEGER :01
13 12:d=2 hl=2 l= 35 cons: cont [ 1 ]
14 14:d=3 hl=2 l= 33 cons: SEQUENCE
15 16:d=4 hl=2 l= 31 cons: SET
16 18:d=5 hl=2 l= 29 cons: SEQUENCE
17 20:d=6 hl=2 l= 3 prim: OBJECT :commonName
18 25:d=6 hl=2 l= 22 prim: PRINTABLESTRING :Test False OCSP Signe r
19 49:d=2 hl=2 l= 15 prim: GENERALIZEDTIME :20160219101141Z
20 66:d=2 hl=2 l= 79 cons: SEQUENCE
21 68:d=3 hl=2 l= 77 cons: SEQUENCE
22 70:d=4 hl=2 l= 56 cons: SEQUENCE
23 72:d=5 hl=2 l= 7 cons: SEQUENCE
24 74:d=6 hl=2 l= 5 prim: OBJECT :sha1
25 81:d=5 hl=2 l= 20 prim: OCTET STRING [HEX DUMP]:02FF75DA24DE 8ADD150FAB689DCCE6E6636D0901
26 103:d=5 hl=2 l= 20 prim: OCTET STRING [HEX DUMP]:1B04E2BF36FE 4817B269A01CE3AF3DE29643E574
27 125:d=5 hl=2 l= 1 prim: INTEGER :03
28 128:d=4 hl=2 l= 0 prim: cont [ 0 ]
29 130:d=4 hl=2 l= 15 prim: GENERALIZEDTIME :20160219101141Z
30 147:d=1 hl=2 l= 13 cons: SEQUENCE
31 149:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
32 160:d=2 hl=2 l= 0 prim: NULL
33 162:d=1 hl=3 l= 129 prim: BIT STRING
34 294:d=1 hl=4 l= 431 cons: cont [ 0 ]
35 298:d=2 hl=4 l= 427 cons: SEQUENCE
36 302:d=3 hl=4 l= 423 cons: SEQUENCE
37 306:d=4 hl=4 l= 272 cons: SEQUENCE
38 310:d=5 hl=2 l= 3 cons: cont [ 0 ]
39 312:d=6 hl=2 l= 1 prim: INTEGER :02
40 315:d=5 hl=2 l= 1 prim: INTEGER :02
41 318:d=5 hl=2 l= 13 cons: SEQUENCE
42 320:d=6 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
43 331:d=6 hl=2 l= 0 prim: NULL
44 333:d=5 hl=2 l= 18 cons: SEQUENCE
45 335:d=6 hl=2 l= 16 cons: SET
46 337:d=7 hl=2 l= 14 cons: SEQUENCE
47 339:d=8 hl=2 l= 3 prim: OBJECT :commonName
48 344:d=8 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
49 353:d=5 hl=2 l= 30 cons: SEQUENCE
50 355:d=6 hl=2 l= 13 prim: UTCTIME :160219151140Z
51 370:d=6 hl=2 l= 13 prim: UTCTIME :260216151140Z
52 385:d=5 hl=2 l= 33 cons: SEQUENCE
53 387:d=6 hl=2 l= 31 cons: SET
54 389:d=7 hl=2 l= 29 cons: SEQUENCE
55 391:d=8 hl=2 l= 3 prim: OBJECT :commonName
56 396:d=8 hl=2 l= 22 prim: PRINTABLESTRING :Test False OCSP Sig ner
57 420:d=5 hl=3 l= 159 cons: SEQUENCE
58 423:d=6 hl=2 l= 13 cons: SEQUENCE
59 425:d=7 hl=2 l= 9 prim: OBJECT :rsaEncryption
60 436:d=7 hl=2 l= 0 prim: NULL
61 438:d=6 hl=3 l= 141 prim: BIT STRING
62 582:d=4 hl=2 l= 13 cons: SEQUENCE
63 584:d=5 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
64 595:d=5 hl=2 l= 0 prim: NULL
65 597:d=4 hl=3 l= 129 prim: BIT STRING
66 -----BEGIN OCSP RESPONSE-----
67 MIIC8woBAKCCAuwwggLoBgkrBgEFBQcwAQEEggLZMIIC1TCBjKADAgEBoSMwITEfMB0GA1UEAxM
68 WVGVzdCBGYWxzZSBPQ1NQIFNpZ25lchgPMjAxNjAyMTkxMDExNDFaME8wTTA4MAcGBSsOAwIaBB
69 QC/3XaJN6K3RUPq2idzObmY20JAQQUGwTivzb+SBeyaaAc46894pZD5XQCAQOAABgPMjAxNjAyM
70 TkxMDExNDFaMA0GCSqGSIb3DQEBBQUAA4GBAK8n7CCZvJXYEGgHqYXUyBjl09lvzP9VVdhntGQF
71 cqTQOyTyMTi0ftOToqmq+56BTibDtK3n07hqhvwqXGnAEWuLk02c98i8Fiuhc1vwGLIzFE11v06
72 jGKe4u86hYr/mWx5X1I6KmkmH9N8T5+st69zYt+sQml4UvCk1eV/iRk/MoIIBrzCCAaswggGnMI
73 IBEKADAgECAgECMA0GCSqGSIb3DQEBBQUAMBIxEDAOBgNVBAMTB1Rlc3QgQ0EwHhcNMTYwMjE5M
74 TUxMTQwWhcNMjYwMjE2MTUxMTQwWjAhMR8wHQYDVQQDExZUZXN0IEZhbHNlIE9DU1AgU2lnbmVy
75 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDa58SHt3r6m+yoF995yx1X4rzueasPHJ7rMfk
76 aFtjm4b8oSn0tQ9yHBzWUGt0eqdfBq9ZHG2BnJ/p53OOxCay7oCnFGjAsppXsC0IXF485QY2reK
77 AGALjJ2Y8Z/0m1tLB3R2HwuVDiY7HsOGWtI7udwvYqagY0V1s6Wd++2ntiPQIDAQABMA0GCSqGS
78 Ib3DQEBBQUAA4GBAKmmXGwh/S8UaECa60CirX+bdMKgAUmcbUe2ieAGdCKUetrz3hrGQU5t8kar
79 5HAU8nbbU/AyQxubb0C/4aSD0+SbzMr8czOYovlLolcnj8+2w41fF7h7YLrbUUBIAbNBJJnjxZI
80 lFz/EVunAlO4xIjJ26Axh5c1y78uYkbv1/AsS
81 -----END OCSP RESPONSE-----
82
83 $ openssl asn1parse -i < [CA CERTIFICATE]
84 0:d=0 hl=4 l= 408 cons: SEQUENCE
85 4:d=1 hl=4 l= 257 cons: SEQUENCE
86 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
87 10:d=3 hl=2 l= 1 prim: INTEGER :02
88 13:d=2 hl=2 l= 1 prim: INTEGER :00
89 16:d=2 hl=2 l= 13 cons: SEQUENCE
90 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
91 29:d=3 hl=2 l= 0 prim: NULL
92 31:d=2 hl=2 l= 18 cons: SEQUENCE
93 33:d=3 hl=2 l= 16 cons: SET
94 35:d=4 hl=2 l= 14 cons: SEQUENCE
95 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
96 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
97 51:d=2 hl=2 l= 30 cons: SEQUENCE
98 53:d=3 hl=2 l= 13 prim: UTCTIME :160219151140Z
99 68:d=3 hl=2 l= 13 prim: UTCTIME :260216151140Z
100 83:d=2 hl=2 l= 18 cons: SEQUENCE
101 85:d=3 hl=2 l= 16 cons: SET
102 87:d=4 hl=2 l= 14 cons: SEQUENCE
103 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
104 94:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
105 103:d=2 hl=3 l= 159 cons: SEQUENCE
106 106:d=3 hl=2 l= 13 cons: SEQUENCE
107 108:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
108 119:d=4 hl=2 l= 0 prim: NULL
109 121:d=3 hl=3 l= 141 prim: BIT STRING
110 265:d=1 hl=2 l= 13 cons: SEQUENCE
111 267:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
112 278:d=2 hl=2 l= 0 prim: NULL
113 280:d=1 hl=3 l= 129 prim: BIT STRING
114 -----BEGIN CA CERTIFICATE-----
115 MIIBmDCCAQGgAwIBAgIBADANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
116 2MDIxOTE1MTE0MFoXDTI2MDIxNjE1MTE0MFowEjEQMA4GA1UEAxMHVGVzdCBDQTCBnzANBgkqhk
117 iG9w0BAQEFAAOBjQAwgYkCgYEAqp0WRQpjAe1WjVVhETlnlquvw55QDVxfiezobOwcpxc1prrZv
118 SmLMcCGLLxE/61vdJcVbsKKuGaqbmJEWbxheiA3MNWEbF1+8XwMTy0kVOOrawv4Bvf9hYKtnIJF
119 Wsye+yNcNK8TCQOIXlJBI1ZRZXbN9CFErLuSvM9EP9OyV90CAwEAATANBgkqhkiG9w0BAQUFAAO
120 BgQB8waa9Yw5vVWxQPJlfGFg9c7s8evnQrrU79O1q3IsqfGl8pCCwGG7Qb/h7RRSH7yn4cpVaoa
121 CBpV6Qb1nE7fuOu1j6qKr1GRiukksfZScVxDeOxJzdS3BAad0WzMGRfbXed6t4amlV1XoMzPBQw
122 8XqZEkcfiv5nO9Rabm37uCgCg==
123 -----END CA CERTIFICATE-----
124
125 $ openssl asn1parse -i < [CERTIFICATE]
126 0:d=0 hl=4 l= 410 cons: SEQUENCE
127 4:d=1 hl=4 l= 259 cons: SEQUENCE
128 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
129 10:d=3 hl=2 l= 1 prim: INTEGER :02
130 13:d=2 hl=2 l= 1 prim: INTEGER :03
131 16:d=2 hl=2 l= 13 cons: SEQUENCE
132 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
133 29:d=3 hl=2 l= 0 prim: NULL
134 31:d=2 hl=2 l= 18 cons: SEQUENCE
135 33:d=3 hl=2 l= 16 cons: SET
136 35:d=4 hl=2 l= 14 cons: SEQUENCE
137 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
138 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
139 51:d=2 hl=2 l= 30 cons: SEQUENCE
140 53:d=3 hl=2 l= 13 prim: UTCTIME :160219151140Z
141 68:d=3 hl=2 l= 13 prim: UTCTIME :260216151140Z
142 83:d=2 hl=2 l= 20 cons: SEQUENCE
143 85:d=3 hl=2 l= 18 cons: SET
144 87:d=4 hl=2 l= 16 cons: SEQUENCE
145 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
146 94:d=5 hl=2 l= 9 prim: PRINTABLESTRING :Test Cert
147 105:d=2 hl=3 l= 159 cons: SEQUENCE
148 108:d=3 hl=2 l= 13 cons: SEQUENCE
149 110:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
150 121:d=4 hl=2 l= 0 prim: NULL
151 123:d=3 hl=3 l= 141 prim: BIT STRING
152 267:d=1 hl=2 l= 13 cons: SEQUENCE
153 269:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
154 280:d=2 hl=2 l= 0 prim: NULL
155 282:d=1 hl=3 l= 129 prim: BIT STRING
156 -----BEGIN CERTIFICATE-----
157 MIIBmjCCAQOgAwIBAgIBAzANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
158 2MDIxOTE1MTE0MFoXDTI2MDIxNjE1MTE0MFowFDESMBAGA1UEAxMJVGVzdCBDZXJ0MIGfMA0GCS
159 qGSIb3DQEBAQUAA4GNADCBiQKBgQC43HTxzqrsQsyCBkYUZUYMR6MfeFEiIN5Fa+/ZwERplD+4w
160 qYaiVEeCkuL8e7jqYMm2B2t4dsfSRDTCjFYM+o49ahDJcD4b0h56s0ovP6085QVMJXWLWQ5RLB+
161 URvaToRfYyh7Q1F0KAj6DUIX6vGahHcNZbDpJkkd4ghWFxV8PQIDAQABMA0GCSqGSIb3DQEBBQU
162 AA4GBADhaCL0Iy2bbEcb8h448n/PcWGLlhH0VRJIu7t/33uvtKXtNA45D9H5B4wMjAZLbplEWWD
163 cSzTU8FNbIoilfgL+9Jw1dsHxJEooiZlf7V4Y2G12iDgcGD8S6bH5EtJmrPDZ06/8iIU9nsGCrO
164 PKP4nsqbj6FOqG8TvNgm7Gk9CCY
165 -----END CERTIFICATE-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698