1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27

content / test / data / sxg / README.md [blame]

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](https://github.com/WICG/webpackage). 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`.