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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_for_test_scripts/710enableAuthTesting
diff --git a/src/scripts/mod_for_test_scripts/710enableAuthTesting b/src/scripts/mod_for_test_scripts/710enableAuthTesting
new file mode 100755
index 0000000000000000000000000000000000000000..edf869f225ae79ee56ee0a8b9ef30867410766ce
--- /dev/null
+++ b/src/scripts/mod_for_test_scripts/710enableAuthTesting
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+echo "Adding mock Google Accounts server certs."
+
+# TODO(cmasone): Generate these on the fly?
+CERT_DIR="${GCLIENT_ROOT}/src/platform/login_manager"
+CERT_NAME="mock_server"
+
+cat "${CERT_DIR}/${CERT_NAME}.key" > "${ROOT_FS_DIR}/etc/${CERT_NAME}.key"
+
+# Sadly, our fake cert HAS to be first in this file.
+TMPFILE=$(mktemp)
+CERT_FILE="${ROOT_FS_DIR}/etc/login_trust_root.pem"
+cat "${CERT_DIR}/${CERT_NAME}.pem" "${CERT_FILE}" > "${TMPFILE}"
+mv -f "${TMPFILE}" "${CERT_FILE}"
« 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