| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # The following documentation uses the annotation approach from RFC 4158. | 7 # The following documentation uses the annotation approach from RFC 4158. |
| 8 # CAs (entities that share the same name and public key) are denoted in boxes, | 8 # CAs (entities that share the same name and public key) are denoted in boxes, |
| 9 # while the indication that a CA Foo signed a certificate for CA Bar is denoted | 9 # while the indication that a CA Foo signed a certificate for CA Bar is denoted |
| 10 # by directed arrows. | 10 # by directed arrows. |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 > ../certificates/multi-root-chain2.pem" | 201 > ../certificates/multi-root-chain2.pem" |
| 202 cp out/B.pem ../certificates/multi-root-B-by-C.pem | 202 cp out/B.pem ../certificates/multi-root-B-by-C.pem |
| 203 cp out/B2.pem ../certificates/multi-root-B-by-F.pem | 203 cp out/B2.pem ../certificates/multi-root-B-by-F.pem |
| 204 cp out/C.pem ../certificates/multi-root-C-by-D.pem | 204 cp out/C.pem ../certificates/multi-root-C-by-D.pem |
| 205 cp out/C2.pem ../certificates/multi-root-C-by-E.pem | 205 cp out/C2.pem ../certificates/multi-root-C-by-E.pem |
| 206 cp out/F.pem ../certificates/multi-root-F-by-E.pem | 206 cp out/F.pem ../certificates/multi-root-F-by-E.pem |
| 207 cp out/D.pem ../certificates/multi-root-D-by-D.pem | 207 cp out/D.pem ../certificates/multi-root-D-by-D.pem |
| 208 cp out/E.pem ../certificates/multi-root-E-by-E.pem | 208 cp out/E.pem ../certificates/multi-root-E-by-E.pem |
| 209 | 209 |
| 210 echo "Generating CRLSets" | 210 echo "Generating CRLSets" |
| 211 # Block D and E by SPKI; invalidates all paths. | 211 # Block C-by-E (serial number 0x1001) by way of serial number. |
| 212 python crlsetutil.py -o ../certificates/multi-root-crlset-D-and-E.raw \ | 212 python crlsetutil.py -o ../certificates/multi-root-crlset-C-by-E.raw \ |
| 213 <<CRLSETDOCBLOCK | 213 <<CRLSETBYSERIAL |
| 214 { | |
| 215 "BlockedBySPKI": [ | |
| 216 "out/D.pem", | |
| 217 "out/E.pem" | |
| 218 ] | |
| 219 } | |
| 220 CRLSETDOCBLOCK | |
| 221 | |
| 222 # Block E by SPKI. | |
| 223 python crlsetutil.py -o ../certificates/multi-root-crlset-E.raw \ | |
| 224 <<CRLSETDOCBLOCK | |
| 225 { | |
| 226 "BlockedBySPKI": [ | |
| 227 "out/E.pem" | |
| 228 ] | |
| 229 } | |
| 230 CRLSETDOCBLOCK | |
| 231 | |
| 232 # Block C-by-D (serial number 0x1000) and F-by-E (serial number 0x1001) by | |
| 233 # way of serial number. | |
| 234 python crlsetutil.py -o ../certificates/multi-root-crlset-CD-and-FE.raw \ | |
| 235 <<CRLSETDOCBLOCK | |
| 236 { | 214 { |
| 237 "BlockedByHash": { | 215 "BlockedByHash": { |
| 238 "out/D.pem": [4096], | |
| 239 "out/E.pem": [4097] | 216 "out/E.pem": [4097] |
| 240 } | 217 } |
| 241 } | 218 } |
| 242 CRLSETDOCBLOCK | 219 CRLSETBYSERIAL |
| 243 | 220 |
| 244 # Block C (all versions) by way of SPKI | 221 # Block F (all versions) by way of SPKI |
| 245 python crlsetutil.py -o ../certificates/multi-root-crlset-C.raw \ | 222 python crlsetutil.py -o ../certificates/multi-root-crlset-F.raw \ |
| 246 <<CRLSETDOCBLOCK | 223 <<CRLSETBYSPKI |
| 247 { | 224 { |
| 248 "BlockedBySPKI": [ "out/C.pem" ] | 225 "BlockedBySPKI": [ "out/F.pem" ] |
| 249 } | 226 } |
| 250 CRLSETDOCBLOCK | 227 CRLSETBYSPKI |
| 251 | |
| 252 # Block an unrelated/unissued serial (0x0FFF) to enable all paths. | |
| 253 python crlsetutil.py -o ../certificates/multi-root-crlset-unrelated.raw \ | |
| 254 <<CRLSETDOCBLOCK | |
| 255 { | |
| 256 "BlockedByHash": { | |
| 257 "out/E.pem": [4095] | |
| 258 } | |
| 259 } | |
| 260 CRLSETDOCBLOCK | |
| OLD | NEW |