Fix cert errors on the official WPT test runner.
On the official WPT test runner, we can't test reporting at all. See https://crbug.com/1121605 The "Report-To" header isn't parsed at all, due to an SSL certificate error. We are already using "--ignore-certificate-errors", but apparently this isn't enough, we also need: "--ignore-certificate-errors-spki-list=XXXX" Where XXX can be generated with: ``` openssl x509 -noout -pubkey -in ./tools/certs/web-platform.test.pem | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | base64 ``` This is adapted from the internal chrome test runner: third_party/blink/tools/blinkpy/web_tests/port/base.py (Search for WPT_FINGERPRINT) Along the way, I found this issue: https://github.com/web-platform-tests/wpt/issues/24180 which I think might also be fixed by this patch. BUG=1121605 Change-Id: Ia6e98a5050c8d2513d605a45cd349a52314282cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2390748 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Robert Ma <robertma@chromium.org> Reviewed-by:
Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#804377}
Showing
Please register or sign in to comment