michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: # michael@0: # File syntax: michael@0: # '#' comments. michael@0: # If the line starts from '!'('! TEST_N Test Name String'), michael@0: # then 'Test Name String' will be the name of a test(starting michael@0: # from second space till the rest of the line). michael@0: # All uncommented lines are hard codded answers to certutil michael@0: # extension questions. michael@0: # Line '= N string1|string2|string3': '=' is a stop sign michael@0: # of certutil inputs and start of the test. 'N' is the number michael@0: # of extension that will be tested. 'string1|string2|string3' michael@0: # are grep patterns for test result verification. '_' in stringN michael@0: # will be replaced to a space. michael@0: # ################################################################ michael@0: ! TEST_1 Certificate Key Usage Extension michael@0: 0 michael@0: 1 michael@0: 2 michael@0: 3 michael@0: 4 michael@0: 5 michael@0: 6 michael@0: 10 michael@0: n michael@0: = 1 Certificate_Key_Usage|Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing michael@0: # ################################################################ michael@0: ! TEST_2 Certificate Key Usage Extension michael@0: 0 michael@0: 1 michael@0: 2 michael@0: 3 michael@0: 4 michael@0: 5 michael@0: 6 michael@0: 10 michael@0: y michael@0: = 1 Certificate_Key_Usage|Digital_Signature|Critical:_True michael@0: # ################################################################ michael@0: ! TEST_3 Certificate Basic Constraints Extension michael@0: y michael@0: -1 michael@0: n michael@0: = 2 Name:_Certificate_Basic_Constraints|Data:_Is_a_CA_with_no_maximum michael@0: # ################################################################ michael@0: ! TEST_4 Certificate Basic Constraints Extension michael@0: n michael@0: -1 michael@0: y michael@0: = 2 Name:_Certificate_Basic_Constraints|Data:_Is_not_a_CA|Critical:_True michael@0: # ################################################################ michael@0: ! TEST_5 Certificate Authority Key Identifier Extension michael@0: y michael@0: 12341235123 michael@0: michael@0: michael@0: y michael@0: = 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Key_ID:|12341235123 michael@0: # ################################################################ michael@0: ! TEST_6 Certificate Authority Key Identifier Extension michael@0: y michael@0: michael@0: 3 michael@0: test.com michael@0: michael@0: 214123 michael@0: y michael@0: = 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Issuer:|DNS_name:_"test.com"|Serial_Number:|214123 michael@0: # ################################################################ michael@0: ! TEST_7 CRL Distribution Points Extension michael@0: 1 michael@0: 2 michael@0: rfc822@name.tld michael@0: 3 michael@0: test.com michael@0: 8 michael@0: 1.2.3.4 michael@0: 9 michael@0: OID.0.2.213 michael@0: 10 michael@0: 0 michael@0: 10 michael@0: n michael@0: n michael@0: = 4 Name:_CRL_Distribution_Points|rfc822@name.tld michael@0: # ################################################################# michael@0: ! TEST_8 CRL Distribution Points Extension michael@0: 2 michael@0: SN=asdfsdf michael@0: 4 michael@0: 3 michael@0: test.com michael@0: 10 michael@0: n michael@0: n michael@0: = 4 Name:_CRL_Distribution_Points|asdfsdf|Reasons:|DNS_name:_"test.com" michael@0: # ################################################################ michael@0: ! TEST_9 Certificate Type Extension michael@0: 0 michael@0: 1 michael@0: 2 michael@0: 10 michael@0: n michael@0: = 5 Name:_Certificate_Type|Data:_ michael@0: # ################################################################ michael@0: ! TEST_10 Extended Key Usage Extension michael@0: 0 michael@0: 1 michael@0: 2 michael@0: 3 michael@0: 4 michael@0: 5 michael@0: 6 michael@0: 10 michael@0: y michael@0: = 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: # ################################################################ michael@0: ! TEST_11 Certificate Key Usage Extension michael@0: michael@0: 1 michael@0: 2 michael@0: 3 michael@0: 4 michael@0: 5 michael@0: 6 michael@0: 10 michael@0: n michael@0: = 1 Certificate_Key_Usage|!Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing