Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: net/data/ssl/scripts/generate-weak-test-chains.sh

Issue 1906323004: Fixing generate-weak-test-chains.sh to generate correct certificates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add text output. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/data/ssl/certificates/prime256v1-ecdsa-intermediate.pem ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/data/ssl/certificates/prime256v1-ecdsa-intermediate.pem ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698