From b8d01432811f52184e408d90cec6a50a4ac929aa Mon Sep 17 00:00:00 2001 From: Hafidh Hidayat Date: Thu, 4 May 2023 00:58:18 +0700 Subject: [PATCH] Update cert.py fix TypeError: hex() takes no arguments (1 given) --- tools/cert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cert.py b/tools/cert.py index 7498d5ee62..217dcf6be3 100755 --- a/tools/cert.py +++ b/tools/cert.py @@ -46,7 +46,7 @@ def printData(data, showPub = True): if showPub: - fingerprint = xcert.fingerprint(hashes.SHA1()).hex(':') + fingerprint = xcert.fingerprint(hashes.SHA1()).hex() print('const char fingerprint_{} [] PROGMEM = "{}";'.format(name, fingerprint)) pem = xcert.public_key().public_bytes(Encoding.PEM, PublicFormat.SubjectPublicKeyInfo).decode('utf-8')