diff options
Diffstat (limited to 'siglog-witness.py')
-rwxr-xr-x | siglog-witness.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/siglog-witness.py b/siglog-witness.py index 06a2c9c..3dd4422 100755 --- a/siglog-witness.py +++ b/siglog-witness.py @@ -302,7 +302,8 @@ def ensure_sigkey(fn): except FileNotFoundError: print("INFO: Signing key file {} not found -- generating new signing key".format(fn)) signing_key = nacl.signing.SigningKey.generate() - print("INFO: verification key: {}".format(signing_key.verify_key.encode(nacl.encoding.HexEncoder).decode('ascii'))) + verify_key = signing_key.verify_key + print("INFO: verification key: {}".format(verify_key.encode(nacl.encoding.HexEncoder).decode('ascii'))) with open(fn, 'w') as f: os.chmod(f.fileno(), S_IRUSR) f.write(signing_key.encode(encoder=nacl.encoding.HexEncoder).decode('ascii')) |