From 7241d28151ad944ba5a00f6fd8848e43ae0a170a Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 17 May 2022 18:35:05 +0300 Subject: Fix subprocess.run() call --- rebiss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebiss.py b/rebiss.py index 4541574..8df6a2c 100644 --- a/rebiss.py +++ b/rebiss.py @@ -69,7 +69,7 @@ def pkcs11_sign(key, msg, hash_alg, pin): env = os.environ.copy() env['PIN'] = pin proc = subprocess.run( - cmd = ['pkcs11-tool', '--slot', reader, '--id', kid, '-m', mech, '--pin', 'env:PIN', '--sign'], + ['pkcs11-tool', '--slot', reader, '--id', kid, '-m', mech, '--pin', 'env:PIN', '--sign'], input = msg, stdout = subprocess.PIPE, env = env, -- cgit