fix: using sha256 for the public key fingerprint
This commit is contained in:
parent
bfcce024ef
commit
fae6115e44
@ -11,4 +11,4 @@ def get_identity(config):
|
|||||||
pubkey = None
|
pubkey = None
|
||||||
with open(config['main']['pubkey']) as fp:
|
with open(config['main']['pubkey']) as fp:
|
||||||
pubkey = RSA.importKey(fp.read())
|
pubkey = RSA.importKey(fp.read())
|
||||||
return pubkey, hashlib.sha1(pubkey.exportKey('DER')).hexdigest()
|
return pubkey, hashlib.sha256(pubkey.exportKey('DER')).hexdigest()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user