From 4245c229d87d6c87019b38d956667aacc28b7675 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 16 Sep 2013 14:21:03 -0400 Subject: [PATCH] Don't verify SSL cert when submitting to Software Secure (they're using self-signed cert for the moment). --- lms/djangoapps/verify_student/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/verify_student/models.py b/lms/djangoapps/verify_student/models.py index 5905a9288f..5a1821de54 100644 --- a/lms/djangoapps/verify_student/models.py +++ b/lms/djangoapps/verify_student/models.py @@ -529,7 +529,8 @@ class SoftwareSecurePhotoVerification(PhotoVerification): response = requests.post( settings.VERIFY_STUDENT["SOFTWARE_SECURE"]["API_URL"], headers=headers, - data=json.dumps(body, indent=2, sort_keys=True, ensure_ascii=False).encode('utf-8') + data=json.dumps(body, indent=2, sort_keys=True, ensure_ascii=False).encode('utf-8'), + verify=False ) log.debug("Sent request to Software Secure for {}".format(self.receipt_id)) log.debug("Headers:\n{}\n\n".format(headers))