Skip to content

Commit 2e5bc98

Browse files
committed
add instructions to generate chains manually
1 parent 19b95fa commit 2e5bc98

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

deployment/live/gcp/test/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,30 @@ go run ./cmd/gcp/ --project_id=${GOOGLE_PROJECT} --bucket=${GOOGLE_PROJECT}-${TE
4444

4545
In a different terminal you can either mint and submit certificates manually, or use the hammer tool to do this.
4646

47+
#### Generate chains manually
48+
First, save the SCTFE repo's path:
49+
50+
```bash
51+
export SCTFE_REPO=$(pwd)
52+
```
53+
54+
Clone the [certificate-transparenct-go](https://github.com/google/certificate-transparency-go) repo.
55+
Then, generate a chain manually. The password for the private key is `gently`:
56+
57+
```bash
58+
mkdir -p /tmp/httpschain
59+
openssl genrsa -out /tmp/httpschain/cert.key 2048
60+
openssl req -new -key /tmp/httpschain/cert.key -out /tmp/httpschain/cert.csr -config=${SCTFE_REPO}/testdata/fake-ca.cfg
61+
openssl x509 -req -days 3650 -in /tmp/httpschain/cert.csr -CAkey ${SCTFE_REPO}/testdata/fake-ca.privkey.pem -CA ${SCTFE_REPO}/testdata/fake-ca.cert -outform pem -out /tmp/httpschain/chain.pem -provider legacy -provider default
62+
cat ${SCTFE_REPO}/testdata/fake-ca.cert >> /tmp/httpschain/chain.pem
63+
```
64+
65+
Finally, submit the chain to the SCTFE:
66+
67+
```bash
68+
go run ./client/ctclient upload --cert_chain=/tmp/httpschain/chain.pem --skip_https_verify --log_uri=http://localhost:6962/${TESSERA_BASE_NAME}
69+
```
70+
4771
#### Automatically generate chains
4872
Save the SCTFE repo's path:
4973

0 commit comments

Comments
 (0)