summaryrefslogtreecommitdiff
path: root/tools/josef_nagios_auditor.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/josef_nagios_auditor.py')
-rwxr-xr-xtools/josef_nagios_auditor.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/josef_nagios_auditor.py b/tools/josef_nagios_auditor.py
index db68bbe..74d9256 100755
--- a/tools/josef_nagios_auditor.py
+++ b/tools/josef_nagios_auditor.py
@@ -22,10 +22,6 @@ parser.add_argument('--sthfile',
required=True,
metavar='file',
help="File containing current STH")
-# parser.add_argument('--keyfile',
-# metavar='file',
-# required=True,
-# help="File containing current STH")
class UTC(datetime.tzinfo):
def utcoffset(self, dt):
@@ -78,8 +74,6 @@ def get_and_verify_sth(url):
# Check signature on the STH
try:
check_sth_signature(url, sth, None)
- # check_sth_signature(url, sth, key)
- # write_file("plausible-sth.json", tmp_sth)
except:
error_str = time.strftime('%H:%M:%S') + " ERROR: Could not verify signature from " + url
print error_str
@@ -302,11 +296,6 @@ def write_file(fn, sth):
def main(args):
- # try:
- # log_key = get_public_key_from_file(args.keyfile)
- # except:
- # print time.strftime('%H:%M:%S') + " ERROR: Failed to load keyfile " + args.keyfile
- # sys.exit(NAGIOS_WARN)
old_sth = read_sth(args.sthfile)
new_sth = get_and_verify_sth(args.baseurl)