summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/compileconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index 8b7524d..95c71be 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -243,6 +243,9 @@ def gen_config(nodename, config, localconfig):
]
if nodetype == "signingnodes":
plopconfig.append((Symbol("log_private_key"), paths["logprivatekey"]))
+ hsm = localconfig.get("hsm")
+ if hsm:
+ plopconfig.append((Symbol("hsm"), [hsm.get("library"), str(hsm.get("slot")), "ecdsa", hsm.get("label"), hsm.get("pin")]))
plopconfig += [
(Symbol("log_public_key"), paths["logpublickey"]),
(Symbol("own_key"), (nodename, "%s/%s-private.pem" % (paths["privatekeys"], nodename))),