The key and certificate files (*.key, *.csr, *.pem) are generated by generate-test-certs.sh in this directory. It requires openssl be installed.
The certificate cbor files (*.cbor) and the signed exchange files (*.sxg) in this directory are generated using generate-test-sxgs.sh.
generate-test-sxgs.sh requires command-line tools in the webpackage repository. To install them, run:
go get -u github.com/WICG/webpackage/go/signedexchange/cmd/...
If the script still can't find the command-line tools, you might need to add the go package directory to your path and try again:
# generate-test-sxgs.sh must be run inside //src/content/test/data/sxg # # See https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies # for the actual value of ~/go/bin. PATH=$PATH:~/go/bin/ ./generate-test-sxgs.sh
The revision of the tools used to generate the test files is 99155ec.