diff --git a/main.py b/main.py index b7526e4..2243dfc 100644 --- a/main.py +++ b/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 diff --git a/run-linux.sh b/run-linux.sh new file mode 100644 index 0000000..39a20db --- /dev/null +++ b/run-linux.sh @@ -0,0 +1,2 @@ +sudo python3 -m pip install -r requirements.txt +sudo python3 main.py \ No newline at end of file diff --git a/run-win.bat b/run-win.bat new file mode 100644 index 0000000..d640237 --- /dev/null +++ b/run-win.bat @@ -0,0 +1,4 @@ +@echo off +cd /d %~dp0 +pip install -r requirements.txt +python main.py \ No newline at end of file