Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | scenario Revocation |
michael@0 | 6 | |
michael@0 | 7 | entity Root |
michael@0 | 8 | type Root |
michael@0 | 9 | serial 10 |
michael@0 | 10 | |
michael@0 | 11 | entity CA0 |
michael@0 | 12 | type Intermediate |
michael@0 | 13 | issuer Root |
michael@0 | 14 | serial 11 |
michael@0 | 15 | |
michael@0 | 16 | entity CA1 |
michael@0 | 17 | type Intermediate |
michael@0 | 18 | issuer CA0 |
michael@0 | 19 | serial 12 |
michael@0 | 20 | |
michael@0 | 21 | entity EE11 |
michael@0 | 22 | type EE |
michael@0 | 23 | issuer CA1 |
michael@0 | 24 | serial 13 |
michael@0 | 25 | |
michael@0 | 26 | entity EE12 |
michael@0 | 27 | type EE |
michael@0 | 28 | issuer CA1 |
michael@0 | 29 | serial 14 |
michael@0 | 30 | |
michael@0 | 31 | entity CA2 |
michael@0 | 32 | type Intermediate |
michael@0 | 33 | issuer CA0 |
michael@0 | 34 | serial 15 |
michael@0 | 35 | |
michael@0 | 36 | entity EE21 |
michael@0 | 37 | type EE |
michael@0 | 38 | issuer CA2 |
michael@0 | 39 | serial 16 |
michael@0 | 40 | |
michael@0 | 41 | crl Root |
michael@0 | 42 | crl CA0 |
michael@0 | 43 | crl CA1 |
michael@0 | 44 | crl CA2 |
michael@0 | 45 | |
michael@0 | 46 | revoke CA1 |
michael@0 | 47 | serial 14 |
michael@0 | 48 | |
michael@0 | 49 | revoke CA0 |
michael@0 | 50 | serial 15 |
michael@0 | 51 | |
michael@0 | 52 | db All |
michael@0 | 53 | |
michael@0 | 54 | import Root::CTu,CTu,CTu |
michael@0 | 55 | import CA0:Root: |
michael@0 | 56 | import CA1:CA0: |
michael@0 | 57 | import CA2:CA0: |
michael@0 | 58 | |
michael@0 | 59 | # EE11 - not revoked |
michael@0 | 60 | verify EE11:CA1 |
michael@0 | 61 | trust Root: |
michael@0 | 62 | rev_type leaf |
michael@0 | 63 | rev_mtype crl |
michael@0 | 64 | result pass |
michael@0 | 65 | |
michael@0 | 66 | # EE12 - revoked |
michael@0 | 67 | verify EE12:CA1 |
michael@0 | 68 | trust Root: |
michael@0 | 69 | rev_type leaf |
michael@0 | 70 | rev_mtype crl |
michael@0 | 71 | result fail |
michael@0 | 72 | |
michael@0 | 73 | # EE11 - CA1 not revoked |
michael@0 | 74 | verify EE11:CA1 |
michael@0 | 75 | trust Root: |
michael@0 | 76 | rev_type chain |
michael@0 | 77 | rev_mtype crl |
michael@0 | 78 | result pass |
michael@0 | 79 | |
michael@0 | 80 | # EE21 - CA2 revoked |
michael@0 | 81 | verify EE21:CA2 |
michael@0 | 82 | trust Root: |
michael@0 | 83 | rev_type chain |
michael@0 | 84 | rev_mtype crl |
michael@0 | 85 | result fail |
michael@0 | 86 |