From 0372da8ef1ee8b03b622456193cf3abaa8adac52 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 15 Aug 2019 23:19:04 +0100 Subject: [PATCH] Debug --- httpsig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpsig.py b/httpsig.py index 22ed30d6..5e001781 100644 --- a/httpsig.py +++ b/httpsig.py @@ -82,7 +82,6 @@ def createSignedHeader(privateKeyPem: str,nickname: str,domain: str,port: int, \ signatureHeader = signPostHeaders(privateKeyPem, nickname, domain, port, \ path, httpPrefix, None) headers['signature'] = signatureHeader - #print('******************************************************http headers: '+str(headers)) return headers def verifyPostHeaders(httpPrefix: str,publicKeyPem: str,headers: dict, \ @@ -132,6 +131,7 @@ def verifyPostHeaders(httpPrefix: str,publicKeyPem: str,headers: dict, \ signedHeaderList.append( f'{signedHeader}: {headers[signedHeaderCap]}') + print('signedHeaderList: '+str(signedHeaderList)) # Now we have our header data digest signedHeaderText = '\n'.join(signedHeaderList) headerDigest = SHA256.new(signedHeaderText.encode('ascii'))