Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

View file

@ -44,7 +44,7 @@ def init(args):
if not args.id: if not args.id:
raise Exception('key ID not specified') raise Exception('key ID not specified')
if not args.module: if not args.module:
args.module = config.get(args.url, 'module', fallback=None) args.module = config.get(args.module, 'module')
args.module = ["--module", str(pathlib.Path(args.module))] if args.module else [] 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() args.cert = base64.b64encode(subprocess.run(['pkcs11-tool'] + args.module + ['--read-object', '--type', 'cert', '--id', args.id], capture_output=True).stdout).decode()