OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 # This script generates a set of test (end-entity, intermediate, root) | 7 # This script generates a set of test (end-entity, intermediate, root) |
8 # certificates with (weak, strong), (RSA, DSA, ECDSA) key pairs. | 8 # certificates with (weak, strong), (RSA, DSA, ECDSA) key pairs. |
9 | 9 |
10 key_types="768-rsa 1024-rsa 2048-rsa prime256v1-ecdsa" | 10 key_types="768-rsa 1024-rsa 2048-rsa prime256v1-ecdsa" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 -config ee.cnf | 155 -config ee.cnf |
156 | 156 |
157 CA_COMMON_NAME="$signer_key_size $algo Test intermediate CA" \ | 157 CA_COMMON_NAME="$signer_key_size $algo Test intermediate CA" \ |
158 CA_DIR=out \ | 158 CA_DIR=out \ |
159 CA_NAME=req_env_dn \ | 159 CA_NAME=req_env_dn \ |
160 KEY_SIZE=$signer_key_size \ | 160 KEY_SIZE=$signer_key_size \ |
161 ALGO=$signer_algo \ | 161 ALGO=$signer_algo \ |
162 CERT_TYPE=intermediate \ | 162 CERT_TYPE=intermediate \ |
163 try openssl ca \ | 163 try openssl ca \ |
164 -batch \ | 164 -batch \ |
| 165 -extensions user_cert \ |
165 -in out/$key_type-ee-by-$signer_key_type-intermediate.csr \ | 166 -in out/$key_type-ee-by-$signer_key_type-intermediate.csr \ |
166 -out out/$key_type-ee-by-$signer_key_type-intermediate.pem \ | 167 -out out/$key_type-ee-by-$signer_key_type-intermediate.pem \ |
167 -config ca.cnf | 168 -config ca.cnf |
168 done | 169 done |
169 done | 170 done |
170 | 171 |
171 # Copy final outputs. | 172 # Copy final outputs. |
172 try cp out/*root*pem out/*intermediate*pem ../certificates | 173 try cp out/*root*pem out/*intermediate*pem ../certificates |
OLD | NEW |