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

Side by Side Diff: net/data/ssl/scripts/generate-aia-certs.sh

Issue 2735733003: Disable commonName matching for certificates (Closed)
Patch Set: Created 3 years, 9 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/scripts/ee.cnf ('k') | net/data/ssl/scripts/generate-policy-certs.sh » ('j') | 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 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 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 that can be used to test fetching of an intermediate via AIA. 8 # certificates that can be used to test fetching of an intermediate via AIA.
9 9
10 try() { 10 try() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 CA_COMMON_NAME="aia-host.invalid" \ 73 CA_COMMON_NAME="aia-host.invalid" \
74 CA_DIR=out \ 74 CA_DIR=out \
75 CA_NAME=aia-test-intermediate \ 75 CA_NAME=aia-test-intermediate \
76 try openssl req \ 76 try openssl req \
77 -new \ 77 -new \
78 -key out/aia-test-cert.key \ 78 -key out/aia-test-cert.key \
79 -out out/aia-test-cert.csr \ 79 -out out/aia-test-cert.csr \
80 -config aia-test.cnf 80 -config aia-test.cnf
81 81
82 CA_COMMON_NAME="AIA Test Intermediate CA" \ 82 CA_COMMON_NAME="AIA Test Intermediate CA" \
83 HOST_NAME="aia-host.invalid" \
83 CA_DIR=out \ 84 CA_DIR=out \
84 CA_NAME=aia-test-intermediate \ 85 CA_NAME=aia-test-intermediate \
85 AIA_URL=http://aia-test.invalid \ 86 AIA_URL=http://aia-test.invalid \
86 try openssl ca \ 87 try openssl ca \
87 -batch \ 88 -batch \
88 -in out/aia-test-cert.csr \ 89 -in out/aia-test-cert.csr \
89 -out out/aia-test-cert.pem \ 90 -out out/aia-test-cert.pem \
90 -config aia-test.cnf \ 91 -config aia-test.cnf \
91 -extensions user_cert 92 -extensions user_cert
92 93
93 # Copy to the file names that are actually checked in. 94 # Copy to the file names that are actually checked in.
94 try cp out/aia-test-cert.pem ../certificates/aia-cert.pem 95 try cp out/aia-test-cert.pem ../certificates/aia-cert.pem
95 try openssl x509 \ 96 try openssl x509 \
96 -outform der \ 97 -outform der \
97 -in out/aia-test-intermediate.pem \ 98 -in out/aia-test-intermediate.pem \
98 -out ../certificates/aia-intermediate.der 99 -out ../certificates/aia-intermediate.der
99 try cp out/aia-test-root.pem ../certificates/aia-root.pem 100 try cp out/aia-test-root.pem ../certificates/aia-root.pem
OLDNEW
« no previous file with comments | « net/data/ssl/scripts/ee.cnf ('k') | net/data/ssl/scripts/generate-policy-certs.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698