summaryrefslogtreecommitdiff
path: root/monitor/verify_sct.py
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/verify_sct.py')
-rwxr-xr-xmonitor/verify_sct.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor/verify_sct.py b/monitor/verify_sct.py
index 54b08c7..e9bac19 100755
--- a/monitor/verify_sct.py
+++ b/monitor/verify_sct.py
@@ -217,6 +217,14 @@ def ReadSCT( SCT ):
File.write( SCTSignature )
File.close()
+ # from josef_lib import check_sct_signature
+ # k = PubKey.replace('\n','').split('-')[10]
+ # print "\n\n START-------------"
+ # print base64.b64encode(SCTSignature)
+ # print base64.b64encode(Data)
+ # sct = {"id":Base64LogID, "signature":base64.b64encode(SCTSignature), "sct_version":0, "timestamp":SCTTimestamp,"extensions":""}
+ # print check_sct_signature(None, base64.b64encode(Data), sct, True, base64.b64decode(k))
+
Args = [ OPENSSL_PATH ]
Args.extend( [ "dgst", "-sha256", "-verify", "tmp-pubkey.pem", "-signature", "tmp-signature.bin", "tmp-signeddata.bin" ] )