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

Side by Side Diff: net/data/ssl/scripts/client_authentication/generate-client-certificates.sh

Issue 12220104: Wire up SSL client authentication for OpenSSL/Android through the net/ stack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 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 certificates for the unittests in 7 # This script generates certificates for the unittests in
8 # net/base/client_cert_store_unittest.cc. The output files are versioned in 8 # net/base/client_cert_store_unittest.cc. The output files are versioned in
9 # net/data/ssl/certificates (client_1.pem, client_2.pem). 9 # net/data/ssl/certificates (client_1.pem, client_2.pem).
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 -keyfile out/root_$id.key \ 68 -keyfile out/root_$id.key \
69 -out out/client_$id.pem \ 69 -out out/client_$id.pem \
70 -config client_authentication.cnf 70 -config client_authentication.cnf
71 71
72 # Package the client cert and private key into a pkcs12 file. 72 # Package the client cert and private key into a pkcs12 file.
73 try openssl pkcs12 \ 73 try openssl pkcs12 \
74 -inkey out/client_$id.key \ 74 -inkey out/client_$id.key \
75 -in out/client_$id.pem \ 75 -in out/client_$id.pem \
76 -out out/client_$id.p12 \ 76 -out out/client_$id.p12 \
77 -export \ 77 -export \
78 -passout pass: 78 -passout pass:chrome
79 done 79 done
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698