Extra debug on http verify

merge-requests/21/head
Bob Mottram 2021-03-14 15:00:43 +00:00
parent 77b6d76c42
commit 94c4b31e39
1 changed files with 3 additions and 2 deletions

View File

@ -265,6 +265,8 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
if debug:
print('DEBUG: verifyPostHeaders ' + method)
print('verifyPostHeaders publicKeyPem: ' + str(publicKeyPem))
print('verifyPostHeaders headers: ' + str(headers))
pubkey = load_pem_public_key(publicKeyPem.encode('utf-8'),
backend=default_backend())
@ -368,8 +370,7 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
signedHeaderCap = signedHeader.capitalize()
if debug:
print('signedHeaderCap: ' +
signedHeaderCap + ' ' + str(headers))
print('signedHeaderCap: ' + signedHeaderCap)
# if this is the date header then check it is recent
if signedHeaderCap == 'Date':