mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
[crosutils] Make auth-testing cert CN be *.google.com
It seems that the intermittent failure we see on the login screen is due to a sort of mixed-content error, where there's a failure within the page to load some embedded resource due to a cert error. Make the SSL cert we inject work for any google.com server to work around this. BUG=chromium-os:20323 TEST=login_CryptohomeMounted 50x, suite_Smoke Change-Id: Ic8e5b9bec799cd19cccfeddd2990fe3a494d2184 Reviewed-on: http://gerrit.chromium.org/gerrit/8818 Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Ready: Chris Masone <cmasone@chromium.org> Tested-by: Chris Masone <cmasone@chromium.org>
This commit is contained in:
parent
0a0e6ecee3
commit
9953aa3faf
@ -35,7 +35,7 @@ sudo mount --bind /proc "${ROOT_FS_DIR}"/proc
|
||||
|
||||
# Generate testing root cert on the fly.
|
||||
sudo chroot "${ROOT_FS_DIR}" ${QEMU} /usr/bin/openssl req -x509 -days 21 \
|
||||
-subj "/CN=www.google.com" \
|
||||
-subj "/CN=*.google.com" \
|
||||
-newkey rsa:1024 -nodes -keyout "${TMP_KEY}" -out "${TMP_CERT}"
|
||||
|
||||
mkdir -m 0755 -p "${ROOT_FS_DIR}/${FAKE_NSSDB}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user