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

Side by Side Diff: src/scripts/mod_for_test_scripts/710enableAuthTesting

Issue 1363003: Add mock https server cert/key to testing builds (Closed)
Patch Set: making sure I fixed a botched merge Created 10 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 | « no previous file | 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
(Empty)
1 #!/bin/bash
2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 echo "Adding mock Google Accounts server certs."
8
9 # TODO(cmasone): Generate these on the fly?
10 CERT_DIR="${GCLIENT_ROOT}/src/platform/login_manager"
11 CERT_NAME="mock_server"
12
13 cat "${CERT_DIR}/${CERT_NAME}.key" > "${ROOT_FS_DIR}/etc/${CERT_NAME}.key"
14
15 # Sadly, our fake cert HAS to be first in this file.
16 TMPFILE=$(mktemp)
17 CERT_FILE="${ROOT_FS_DIR}/etc/login_trust_root.pem"
18 cat "${CERT_DIR}/${CERT_NAME}.pem" "${CERT_FILE}" > "${TMPFILE}"
19 mv -f "${TMPFILE}" "${CERT_FILE}"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698