From 626ced822ccfac40b93ed7227255d19522c1ddaa Mon Sep 17 00:00:00 2001 From: Chris Masone Date: Mon, 9 Aug 2010 14:41:17 -0700 Subject: [PATCH] Fake authserver SSL certs now valid for 21 days, instead of 2 BUG=5130 TEST=create a test image, boot it on a device, and run "sudo nsscertutil -d "sql:/etc/fake_root_ca/nssdb" -L -n FakeCert | less". Look at the section of the output marked "Validity:" and make sure the Not Before and Not After sections indicate dates that are 3 weeks apart Change-Id: I67cf7e71027147f83c1bc916557bc06ef66fa0e0 Review URL: http://codereview.chromium.org/3075025 --- mod_for_test_scripts/710enableAuthTesting | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_for_test_scripts/710enableAuthTesting b/mod_for_test_scripts/710enableAuthTesting index d10cb12887..3d9a96afd1 100755 --- a/mod_for_test_scripts/710enableAuthTesting +++ b/mod_for_test_scripts/710enableAuthTesting @@ -29,7 +29,7 @@ mv -f "${TMP_KEY}" "${ROOT_FS_DIR}/${TMP_KEY}" mv -f "${TMP_CERT}" "${ROOT_FS_DIR}/${TMP_CERT}" # Generate testing root cert on the fly. -sudo chroot "${ROOT_FS_DIR}" ${QEMU} /usr/bin/openssl req -x509 -days 2 \ +sudo chroot "${ROOT_FS_DIR}" ${QEMU} /usr/bin/openssl req -x509 -days 21 \ -subj "/CN=www.google.com" \ -newkey rsa:1024 -nodes -keyout "${TMP_KEY}" -out "${TMP_CERT}" @@ -53,7 +53,7 @@ cat "${ROOT_FS_DIR}/${TMP_CERT}" "${CERT_FILE}" > "${TMPFILE}" mv -f "${TMPFILE}" "${CERT_FILE}" chmod "${PERMS}" "${CERT_FILE}" -if [ -n "${QEMU}" ] ; then +if [ -n "${QEMU}" ] ; then rm "${ROOT_FS_DIR}/${QEMU}" fi rm "${ROOT_FS_DIR}/${TMP_KEY}"