Add launchers/constant TLS verify
This commit is contained in:
parent
2eda7cdf1a
commit
df55d85a48
3 changed files with 12 additions and 5 deletions
11
main.py
11
main.py
|
@ -237,11 +237,12 @@ def monitor_registry_changes():
|
|||
|
||||
# Verify TLS Certificates
|
||||
def verify_tls_cert(url):
|
||||
try:
|
||||
response = requests.get(url, verify=certifi.where())
|
||||
print(f"TLS certificate valid for {url}")
|
||||
except requests.exceptions.SSLError as e:
|
||||
print(f"TLS certificate error for {url}: {e}")
|
||||
while True:
|
||||
try:
|
||||
response = requests.get(url, verify=certifi.where())
|
||||
print(f"TLS certificate valid for {url}")
|
||||
except requests.exceptions.SSLError as e:
|
||||
print(f"TLS certificate error for {url}: {e}")
|
||||
|
||||
def monitor_tls_certificates():
|
||||
urls = monitored_urls
|
||||
|
|
2
run-linux.sh
Normal file
2
run-linux.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
sudo python3 -m pip install -r requirements.txt
|
||||
sudo python3 main.py
|
4
run-win.bat
Normal file
4
run-win.bat
Normal file
|
@ -0,0 +1,4 @@
|
|||
@echo off
|
||||
cd /d %~dp0
|
||||
pip install -r requirements.txt
|
||||
python main.py
|
Loading…
Reference in a new issue