main
Bob Mottram 2021-02-03 18:25:41 +00:00
parent cdf300eb47
commit 2cdd458079
1 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,8 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
signature = base64.b64decode(signatureDict['signature'])
try:
pkcs1_15.new(publicKeyPem).verify(headerDigest, signature)
pubKey = pkcs1_15.new(publicKeyPem)
pubKey.verify(headerDigest, signature)
return True
except (ValueError, TypeError):
if debug: