From dc18b618ba6d442540a96f26bdce554057262d23 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Fri, 10 Apr 2015 15:38:59 +0200 Subject: Add HSM support in compileconfig.py --- tools/compileconfig.py | 3 +++ 1 file changed, 3 insertions(+) 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))), -- cgit v1.1