Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 | # File syntax: |
michael@0 | 6 | # '#' comments. |
michael@0 | 7 | # If the line starts from '!'('! TEST_N Test Name String'), |
michael@0 | 8 | # then 'Test Name String' will be the name of a test(starting |
michael@0 | 9 | # from second space till the rest of the line). |
michael@0 | 10 | # All uncommented lines are hard codded answers to certutil |
michael@0 | 11 | # extension questions. |
michael@0 | 12 | # Line '= N string1|string2|string3': '=' is a stop sign |
michael@0 | 13 | # of certutil inputs and start of the test. 'N' is the number |
michael@0 | 14 | # of extension that will be tested. 'string1|string2|string3' |
michael@0 | 15 | # are grep patterns for test result verification. '_' in stringN |
michael@0 | 16 | # will be replaced to a space. |
michael@0 | 17 | # ################################################################ |
michael@0 | 18 | ! TEST_1 Certificate Key Usage Extension |
michael@0 | 19 | 0 |
michael@0 | 20 | 1 |
michael@0 | 21 | 2 |
michael@0 | 22 | 3 |
michael@0 | 23 | 4 |
michael@0 | 24 | 5 |
michael@0 | 25 | 6 |
michael@0 | 26 | 10 |
michael@0 | 27 | n |
michael@0 | 28 | = 1 Certificate_Key_Usage|Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing |
michael@0 | 29 | # ################################################################ |
michael@0 | 30 | ! TEST_2 Certificate Key Usage Extension |
michael@0 | 31 | 0 |
michael@0 | 32 | 1 |
michael@0 | 33 | 2 |
michael@0 | 34 | 3 |
michael@0 | 35 | 4 |
michael@0 | 36 | 5 |
michael@0 | 37 | 6 |
michael@0 | 38 | 10 |
michael@0 | 39 | y |
michael@0 | 40 | = 1 Certificate_Key_Usage|Digital_Signature|Critical:_True |
michael@0 | 41 | # ################################################################ |
michael@0 | 42 | ! TEST_3 Certificate Basic Constraints Extension |
michael@0 | 43 | y |
michael@0 | 44 | -1 |
michael@0 | 45 | n |
michael@0 | 46 | = 2 Name:_Certificate_Basic_Constraints|Data:_Is_a_CA_with_no_maximum |
michael@0 | 47 | # ################################################################ |
michael@0 | 48 | ! TEST_4 Certificate Basic Constraints Extension |
michael@0 | 49 | n |
michael@0 | 50 | -1 |
michael@0 | 51 | y |
michael@0 | 52 | = 2 Name:_Certificate_Basic_Constraints|Data:_Is_not_a_CA|Critical:_True |
michael@0 | 53 | # ################################################################ |
michael@0 | 54 | ! TEST_5 Certificate Authority Key Identifier Extension |
michael@0 | 55 | y |
michael@0 | 56 | 12341235123 |
michael@0 | 57 | |
michael@0 | 58 | |
michael@0 | 59 | y |
michael@0 | 60 | = 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Key_ID:|12341235123 |
michael@0 | 61 | # ################################################################ |
michael@0 | 62 | ! TEST_6 Certificate Authority Key Identifier Extension |
michael@0 | 63 | y |
michael@0 | 64 | |
michael@0 | 65 | 3 |
michael@0 | 66 | test.com |
michael@0 | 67 | |
michael@0 | 68 | 214123 |
michael@0 | 69 | y |
michael@0 | 70 | = 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Issuer:|DNS_name:_"test.com"|Serial_Number:|214123 |
michael@0 | 71 | # ################################################################ |
michael@0 | 72 | ! TEST_7 CRL Distribution Points Extension |
michael@0 | 73 | 1 |
michael@0 | 74 | 2 |
michael@0 | 75 | rfc822@name.tld |
michael@0 | 76 | 3 |
michael@0 | 77 | test.com |
michael@0 | 78 | 8 |
michael@0 | 79 | 1.2.3.4 |
michael@0 | 80 | 9 |
michael@0 | 81 | OID.0.2.213 |
michael@0 | 82 | 10 |
michael@0 | 83 | 0 |
michael@0 | 84 | 10 |
michael@0 | 85 | n |
michael@0 | 86 | n |
michael@0 | 87 | = 4 Name:_CRL_Distribution_Points|rfc822@name.tld |
michael@0 | 88 | # ################################################################# |
michael@0 | 89 | ! TEST_8 CRL Distribution Points Extension |
michael@0 | 90 | 2 |
michael@0 | 91 | SN=asdfsdf |
michael@0 | 92 | 4 |
michael@0 | 93 | 3 |
michael@0 | 94 | test.com |
michael@0 | 95 | 10 |
michael@0 | 96 | n |
michael@0 | 97 | n |
michael@0 | 98 | = 4 Name:_CRL_Distribution_Points|asdfsdf|Reasons:|DNS_name:_"test.com" |
michael@0 | 99 | # ################################################################ |
michael@0 | 100 | ! TEST_9 Certificate Type Extension |
michael@0 | 101 | 0 |
michael@0 | 102 | 1 |
michael@0 | 103 | 2 |
michael@0 | 104 | 10 |
michael@0 | 105 | n |
michael@0 | 106 | = 5 Name:_Certificate_Type|Data:_<SSL_Client,SSL_Server,S/MIME> |
michael@0 | 107 | # ################################################################ |
michael@0 | 108 | ! TEST_10 Extended Key Usage Extension |
michael@0 | 109 | 0 |
michael@0 | 110 | 1 |
michael@0 | 111 | 2 |
michael@0 | 112 | 3 |
michael@0 | 113 | 4 |
michael@0 | 114 | 5 |
michael@0 | 115 | 6 |
michael@0 | 116 | 10 |
michael@0 | 117 | y |
michael@0 | 118 | = 6 Name:_Extended_Key_Usage|Critical:_True|TLS_Web_Server_Authentication_Certificate|TLS_Web_Client_Authentication_Certificate|Code_Signing_Certificate|E-Mail_Protection_Certificate|Time_Stamping_Certifcate|OCSP_Responder_Certificate|Strong_Crypto_Export_Approved |
michael@0 | 119 | # ################################################################ |
michael@0 | 120 | ! TEST_11 Certificate Key Usage Extension |
michael@0 | 121 | |
michael@0 | 122 | 1 |
michael@0 | 123 | 2 |
michael@0 | 124 | 3 |
michael@0 | 125 | 4 |
michael@0 | 126 | 5 |
michael@0 | 127 | 6 |
michael@0 | 128 | 10 |
michael@0 | 129 | n |
michael@0 | 130 | = 1 Certificate_Key_Usage|!Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing |