From 6402eeefc18c47b7dceea5e0dda0b8aeec6719bd Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Fri, 10 Apr 2015 15:42:03 +0200 Subject: Verify SSL certificates and hostnames in python code Closes CATLFISH-34 --- tools/testcase1.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/testcase1.py') diff --git a/tools/testcase1.py b/tools/testcase1.py index 1d46230..c1100ea 100755 --- a/tools/testcase1.py +++ b/tools/testcase1.py @@ -16,6 +16,7 @@ from certtools import * baseurls = [sys.argv[1]] logpublickeyfile = sys.argv[2] +cacertfile = sys.argv[3] certfiles = ["../tools/testcerts/cert1.txt", "../tools/testcerts/cert2.txt", "../tools/testcerts/cert3.txt", "../tools/testcerts/cert4.txt", @@ -27,6 +28,8 @@ cc3 = get_certs_from_file(certfiles[2]) cc4 = get_certs_from_file(certfiles[3]) cc5 = get_certs_from_file(certfiles[4]) +create_ssl_context(cafile=cacertfile) + failures = 0 indentation = "" -- cgit v1.1