Verify the certificates - anticapum - Handle Università Politecnica delle Marche captive portal
(HTM) hg clone https://bitbucket.org/iamleot/anticapum
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset 1d4d154788e334e7a8bf1deee3292bf973fe410b
(DIR) parent f08adfa59d3c9bb7b792b64ce15727041b5cb6fd
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 25 Feb 2019 09:58:07
Verify the certificates
Diffstat:
anticapum.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff -r f08adfa59d3c -r 1d4d154788e3 anticapum.py
--- a/anticapum.py Sat Sep 29 20:34:07 2018 +0200
+++ b/anticapum.py Mon Feb 25 09:58:07 2019 +0100
@@ -1,7 +1,7 @@
#!/usr/pkg/bin/python3.7
#
-# Copyright (c) 2017-2018 Leonardo Taccari
+# Copyright (c) 2017-2019 Leonardo Taccari
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -128,10 +128,7 @@
auth = parse.urlencode(data)
auth = auth.encode('utf-8')
- # TODO: Find a way to verify the cert!
- sc = ssl.SSLContext()
- sc.verify_mode = ssl.CERT_NONE
- with request.urlopen(ANTICAPUM_URL_LOGOUT, data=auth, context=sc) as f:
+ with request.urlopen(ANTICAPUM_URL_LOGOUT, data=auth) as f:
pass