From 22336e0182f6f4bd3f0205f69bfa330c780d4b46 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sun, 5 Jul 2026 09:17:39 +0000 Subject: [PATCH] Add configs/ssl_check.sh --- configs/ssl_check.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 configs/ssl_check.sh diff --git a/configs/ssl_check.sh b/configs/ssl_check.sh new file mode 100644 index 0000000..73f24cd --- /dev/null +++ b/configs/ssl_check.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +##mx.tobiastime.xyz +mx=$(check_ssl_cert -p 587 --protocol smtp -H mx.tobiastime.xyz) + +##tobiastime.xyz +tobias=$(check_ssl_cert -H tobiastime.xyz) + +##www.tobiastime.xyz +www=$(check_ssl_cert -H www.tobiastime.xyz) + +##git.tobiastime.xyz +git=$(check_ssl_cert -H git.tobiastime.xyz) + +##dir check +[ -d /var/www/ssl ] || mkdir -p /var/www/ssl + +echo ' + + + + + +SSL Expiry Check +

SSL EXPIRY CHECK

+

MX.TOBIASTIME.XYZ

+

'"$mx"'

+

TOBIASTIME.XYZ

+

'"$tobias"'

+

WWW.TOBIASTIME.XYZ

+

'"$www"'

+

GIT.TOBIASTIME.XYZ

+

'"$git"'

' > /var/www/ssl/index.html