Commit Graph

9 Commits

Author SHA1 Message Date
Chris Masone
b8f2ace10f pam_google is no longer in the image, so we must create /etc/login_trust_root.pem from scratch
pam_google used to install /etc/login_trust_root.pem, and then this script would
modify it.  We no longer install pam_google, so we need to create this file
de-novo now.

BUG=None
TEST=build_image, then mod for test.  Check that /etc/login_trust_root.pem exists, contains one cert, and has the right permissions.  For maximum goodness, run login_LoginSuccess

Change-Id: I409ffeea4b30905cf9e0506650b67556fa5ec80e

Review URL: http://codereview.chromium.org/3185024
2010-08-24 22:01:39 -07:00
Chris Masone
626ced822c 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
2010-08-09 14:41:17 -07:00
Olof Johansson
e07324f53c don't use qemu on x86 for mod_image_for_test
BUG=none
TEST=run mod_image_for_test on x86. Watch it fail. D'oh.

Review URL: http://codereview.chromium.org/3048017
2010-07-22 22:38:36 -05:00
Justin Neddo
6b5b16b8fe Generate fake root certs for autotest via qemu
mod_image_for_test.sh now passes the target architecture to the subscripts
mod_for_test_scripts/710enableAuthTesting generates the /etc/fake_root_cert
databases by running nsscertutil under QEMU.

BUG=3310
TEST=Built autotest enabled images for x86 and arm.  On arm, the browser no
longer crashes trying to read the fake root certs.

Review URL: http://codereview.chromium.org/2878033
2010-07-22 10:17:03 -05:00
Chris Masone
5543339140 Generate testing SSL cert on the fly; install into nssdb correctly
Review URL: http://codereview.chromium.org/1750022
2010-05-03 08:32:06 -07:00
Chris Masone
86e28fd1d9 Generate testing certs on the fly
Review URL: http://codereview.chromium.org/1701016
2010-04-27 11:06:12 -07:00
Chris Masone
127c3bfa2b Add testing root certs to an nssdb on the rootfs.
After discussing with drewry, we can't come up with a better way to inject these root certs.  We considered putting them on the stateful partition, but that opens up an avenue of attack (if you can get a root cert into the magic directory, then you can MITM login).  Thus, we put it on the rootfs instead.  The script that sets up the hashes for vboot will verify that this directory is not present in production images.  That work is tracked here: http://code.google.com/p/chromium-os/issues/detail?id=2693

Review URL: http://codereview.chromium.org/1566055
2010-04-19 14:26:14 -07:00
Chris Masone
b9f7230dcd Fix permissions on fake root cert that is injected for login testing. It was getting 0600
Review URL: http://codereview.chromium.org/1626007
2010-04-08 16:05:32 -07:00
Chris Masone
b7c11ac0a3 Add mock https server cert/key to testing builds
Review URL: http://codereview.chromium.org/1363003
2010-03-26 08:54:50 -07:00