aboutsummaryrefslogtreecommitdiff
path: root/server/main.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-27 19:16:10 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-27 19:16:10 +0100
commite7801b268c97c6b72bfcd76549ce5fd50ab0b1b5 (patch)
tree1eecf16a6b263750b0d480c3d966dff2f3072cfd /server/main.go
parent13dd306e69b26ab8b7aedcd6ed915df4b6672a01 (diff)
added ed25519 signing and SDIs
Diffstat (limited to 'server/main.go')
-rw-r--r--server/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/main.go b/server/main.go
index 84d92ea..924cfc9 100644
--- a/server/main.go
+++ b/server/main.go
@@ -20,6 +20,7 @@ var (
trillianID = flag.Int64("trillian_id", 5991359069696313945, "log identifier in the Trillian database")
rpcDeadline = flag.Duration("rpc_deadline", time.Second*10, "deadline for backend RPC requests")
anchorPath = flag.String("anchor_path", "testdata/chain/rgdd-root.pem", "path to a file containing PEM-encoded X.509 root certificates")
+ keyPath = flag.String("key_path", "testdata/chain/stfe.key", "path to a PEM-encoded ed25519 signing key")
)
func main() {
@@ -37,7 +38,7 @@ func main() {
mux := http.NewServeMux()
http.Handle("/", mux)
- lp, err := stfe.NewLogParameters([]byte("rgdd"), *trillianID, *prefix, *anchorPath)
+ lp, err := stfe.NewLogParameters(*trillianID, *prefix, *anchorPath, *keyPath)
if err != nil {
glog.Fatalf("failed setting up log parameters: %v", err)
}