Skip to content

Commit 551ff91

Browse files
authored
Add additional docs to clarify key generation and format for config file
1 parent 5027e18 commit 551ff91

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

trillian/docs/ManualDeployment.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ ASN1 OID: prime256v1
258258
NIST CURVE: P-256
259259
```
260260

261+
**Cross-check**: Convert the private and public key into DER format encoded as a hex string that can be set in the configuration file:
262+
```bash
263+
% openssl pkcs8 -in privkey.pem -topk8 -nocrypt -outform der -out privkey.der
264+
% xxd -p privkey.der | tr -d '\n' | sed 's/../\\x&/g' > privkey.hex
265+
```
266+
Copy the contents of privkey.hex (single line) into the private_key stanza in the configuration file. Repeat the process for the public key.
267+
261268
**Cross-check**: Once the CTFE is configured and running
262269
([below](#ctfe-start-up)), the `ctclient` command-line tool allows signature
263270
checking against the public key with the `--pub_key` option:

0 commit comments

Comments
 (0)