1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/tests/cert/certext.txt Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,130 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 +# 1.8 +# File syntax: 1.9 +# '#' comments. 1.10 +# If the line starts from '!'('! TEST_N Test Name String'), 1.11 +# then 'Test Name String' will be the name of a test(starting 1.12 +# from second space till the rest of the line). 1.13 +# All uncommented lines are hard codded answers to certutil 1.14 +# extension questions. 1.15 +# Line '= N string1|string2|string3': '=' is a stop sign 1.16 +# of certutil inputs and start of the test. 'N' is the number 1.17 +# of extension that will be tested. 'string1|string2|string3' 1.18 +# are grep patterns for test result verification. '_' in stringN 1.19 +# will be replaced to a space. 1.20 +# ################################################################ 1.21 +! TEST_1 Certificate Key Usage Extension 1.22 +0 1.23 +1 1.24 +2 1.25 +3 1.26 +4 1.27 +5 1.28 +6 1.29 +10 1.30 +n 1.31 += 1 Certificate_Key_Usage|Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing 1.32 +# ################################################################ 1.33 +! TEST_2 Certificate Key Usage Extension 1.34 +0 1.35 +1 1.36 +2 1.37 +3 1.38 +4 1.39 +5 1.40 +6 1.41 +10 1.42 +y 1.43 += 1 Certificate_Key_Usage|Digital_Signature|Critical:_True 1.44 +# ################################################################ 1.45 +! TEST_3 Certificate Basic Constraints Extension 1.46 +y 1.47 +-1 1.48 +n 1.49 += 2 Name:_Certificate_Basic_Constraints|Data:_Is_a_CA_with_no_maximum 1.50 +# ################################################################ 1.51 +! TEST_4 Certificate Basic Constraints Extension 1.52 +n 1.53 +-1 1.54 +y 1.55 += 2 Name:_Certificate_Basic_Constraints|Data:_Is_not_a_CA|Critical:_True 1.56 +# ################################################################ 1.57 +! TEST_5 Certificate Authority Key Identifier Extension 1.58 +y 1.59 +12341235123 1.60 + 1.61 + 1.62 +y 1.63 += 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Key_ID:|12341235123 1.64 +# ################################################################ 1.65 +! TEST_6 Certificate Authority Key Identifier Extension 1.66 +y 1.67 + 1.68 +3 1.69 +test.com 1.70 + 1.71 +214123 1.72 +y 1.73 += 3 Name:_Certificate_Authority_Key_Identifier|Critical:_True|Issuer:|DNS_name:_"test.com"|Serial_Number:|214123 1.74 +# ################################################################ 1.75 +! TEST_7 CRL Distribution Points Extension 1.76 +1 1.77 +2 1.78 +rfc822@name.tld 1.79 +3 1.80 +test.com 1.81 +8 1.82 +1.2.3.4 1.83 +9 1.84 +OID.0.2.213 1.85 +10 1.86 +0 1.87 +10 1.88 +n 1.89 +n 1.90 += 4 Name:_CRL_Distribution_Points|rfc822@name.tld 1.91 +# ################################################################# 1.92 +! TEST_8 CRL Distribution Points Extension 1.93 +2 1.94 +SN=asdfsdf 1.95 +4 1.96 +3 1.97 +test.com 1.98 +10 1.99 +n 1.100 +n 1.101 += 4 Name:_CRL_Distribution_Points|asdfsdf|Reasons:|DNS_name:_"test.com" 1.102 +# ################################################################ 1.103 +! TEST_9 Certificate Type Extension 1.104 +0 1.105 +1 1.106 +2 1.107 +10 1.108 +n 1.109 += 5 Name:_Certificate_Type|Data:_<SSL_Client,SSL_Server,S/MIME> 1.110 +# ################################################################ 1.111 +! TEST_10 Extended Key Usage Extension 1.112 +0 1.113 +1 1.114 +2 1.115 +3 1.116 +4 1.117 +5 1.118 +6 1.119 +10 1.120 +y 1.121 += 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 1.122 +# ################################################################ 1.123 +! TEST_11 Certificate Key Usage Extension 1.124 + 1.125 +1 1.126 +2 1.127 +3 1.128 +4 1.129 +5 1.130 +6 1.131 +10 1.132 +n 1.133 += 1 Certificate_Key_Usage|!Digital_Signature|Non-Repudiation|Key_Encipherment|Data_Encipherment|Key_Agreement|Certificate_Signing|CRL_Signing