mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
94c4b31e39
commit
7345381f85
|
|
@ -267,6 +267,8 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
|
||||||
print('DEBUG: verifyPostHeaders ' + method)
|
print('DEBUG: verifyPostHeaders ' + method)
|
||||||
print('verifyPostHeaders publicKeyPem: ' + str(publicKeyPem))
|
print('verifyPostHeaders publicKeyPem: ' + str(publicKeyPem))
|
||||||
print('verifyPostHeaders headers: ' + str(headers))
|
print('verifyPostHeaders headers: ' + str(headers))
|
||||||
|
print('verifyPostHeaders messageBodyJsonStr: ' +
|
||||||
|
str(messageBodyJsonStr))
|
||||||
|
|
||||||
pubkey = load_pem_public_key(publicKeyPem.encode('utf-8'),
|
pubkey = load_pem_public_key(publicKeyPem.encode('utf-8'),
|
||||||
backend=default_backend())
|
backend=default_backend())
|
||||||
|
|
|
||||||
7
tests.py
7
tests.py
|
|
@ -279,6 +279,13 @@ def testHttpSigNew():
|
||||||
'cvhBfgn/xeAsNxz67SIHMgiXvLL6TFqEI1en9dl9A3ihB6ZO6+W' + \
|
'cvhBfgn/xeAsNxz67SIHMgiXvLL6TFqEI1en9dl9A3ihB6ZO6+W' + \
|
||||||
'gUoW7OobZNlPxAUkQCc2A6oVjCYOdpKdrMAXQp2TQQ==:'
|
'gUoW7OobZNlPxAUkQCc2A6oVjCYOdpKdrMAXQp2TQQ==:'
|
||||||
|
|
||||||
|
# publicKeyPem = ''
|
||||||
|
|
||||||
|
assert verifyPostHeaders(httpPrefix, publicKeyPem, headers,
|
||||||
|
boxpath, False, None,
|
||||||
|
messageBodyJsonStr, debug,
|
||||||
|
True)
|
||||||
|
|
||||||
|
|
||||||
def _testHttpsigBase(withDigest):
|
def _testHttpsigBase(withDigest):
|
||||||
print('testHttpsig(' + str(withDigest) + ')')
|
print('testHttpsig(' + str(withDigest) + ')')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue