diff options
author | Magnus Ahltorp <map@kth.se> | 2015-04-10 15:38:59 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-04-10 15:38:59 +0200 |
commit | dc18b618ba6d442540a96f26bdce554057262d23 (patch) | |
tree | b75fed1fdc4aef1f2d45513903e7cd39228e58d9 | |
parent | 34c17f5289782249674ec04d770cf88743ab545b (diff) |
Add HSM support in compileconfig.pyhsmhelper
-rwxr-xr-x | tools/compileconfig.py | 3 |
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))), |