File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,30 @@ go run ./cmd/gcp/ --project_id=${GOOGLE_PROJECT} --bucket=${GOOGLE_PROJECT}-${TE
44
44
45
45
In a different terminal you can either mint and submit certificates manually, or use the hammer tool to do this.
46
46
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
+
47
71
#### Automatically generate chains
48
72
Save the SCTFE repo's path:
49
73
You can’t perform that action at this time.
0 commit comments