File tree 1 file changed +19
-2
lines changed 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Prerequisites
4
4
You'll need to have a VM running in the same GCP project that you can SSH to,
5
- with Go installed.
5
+ with Go installed, and you favourite terminal multiplexer .
6
6
7
7
## Overview
8
8
@@ -35,8 +35,25 @@ Terraforming the project can be done by:
35
35
2 . Run ` terragrunt apply `
36
36
37
37
## Run the SCTFE
38
+ ### With fake chains
38
39
39
- On the VM, run the following command:
40
+ On the VM, run the following command to bring up the SCTFE :
40
41
``` bash
41
42
go run ./cmd/gcp/ --project_id=${GOOGLE_PROJECT} --bucket=${GOOGLE_PROJECT} -${TESSERA_BASE_NAME} -bucket --spanner_db_path=projects/${GOOGLE_PROJECT} /instances/${TESSERA_BASE_NAME} /databases/${TESSERA_BASE_NAME} -db --spanner_db_path=projects/${GOOGLE_PROJECT} /instances/${TESSERA_BASE_NAME} /databases/${TESSERA_BASE_NAME} -dedup-db --private_key=./testdata/ct-http-server.privkey.pem --password=dirk --roots_pem_file=./testdata/fake-ca.cert --origin=${TESSERA_BASE_NAME}
42
43
```
44
+
45
+ In a different terminal you can either mint and submit certificates manually, or use the hammer tool to do this.
46
+
47
+ #### Automatically generate chains
48
+ 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, and from there run:
55
+
56
+ ``` bash
57
+ go run ./trillian/integration/ct_hammer/ --ct_http_servers=localhost:6962/${TESSERA_BASE_NAME} --max_retry=2m --invalid_chance=0 --get_sth=0 --get_sth_consistency=0 --get_proof_by_hash=0 --get_entries=0 --get_roots=0 --get_entry_and_proof=0 --max_parallel_chains=4 --skip_https_verify=true --operations=10000 --rate_limit=150 --log_config=${SCTFE_REPO} /testdata/hammer.cfg --testdata_dir=./trillian/testdata/
58
+ ```
59
+
You can’t perform that action at this time.
0 commit comments