summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmarginaltool2
1 files changed, 1 insertions, 1 deletions
diff --git a/marginaltool b/marginaltool
index d92f0c9..347a18e 100755
--- a/marginaltool
+++ b/marginaltool
@@ -44,7 +44,7 @@ def init(args):
if not args.id:
raise Exception('key ID not specified')
if not args.module:
- args.module = config.get(args.module, 'module')
+ args.module = config.get(args.url, 'module', fallback=None)
args.module = ["--module", str(pathlib.Path(args.module))] if args.module else []
args.cert = base64.b64encode(subprocess.run(['pkcs11-tool'] + args.module + ['--read-object', '--type', 'cert', '--id', args.id], capture_output=True).stdout).decode()