Skip to content

Commit

Permalink
espsecure: Fix 'espsecure.py generate_signing_key --version 2' under …
Browse files Browse the repository at this point in the history
…Python 3
  • Loading branch information
projectgus committed Jul 23, 2020
1 parent 5d99ca5 commit c67e079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espsecure.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def generate_signing_key(args):
encoding=serialization.Encoding.PEM,
format=serialization.PrivateFormat.TraditionalOpenSSL,
encryption_algorithm=serialization.NoEncryption()
).decode()
)
with open(args.keyfile, "wb") as f:
f.write(private_key)
print("RSA 3072 private key in PEM format written to %s" % args.keyfile)
Expand Down

0 comments on commit c67e079

Please sign in to comment.