Add configs/ssl_check.sh

This commit is contained in:
2026-07-05 09:17:39 +00:00
parent bfbba7f394
commit 22336e0182

38
configs/ssl_check.sh Normal file
View File

@@ -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 '<!DOCTYPE html>
<head>
<style>
body {
background-color: black;
color: white;
}
</style>
</head>
<title>SSL Expiry Check</title>
<h1>SSL EXPIRY CHECK</h1>
<font size=7><p>MX.TOBIASTIME.XYZ</p></font>
<font size=4><p>'"$mx"'</p>
<font size=7><p>TOBIASTIME.XYZ</p></font>
<font size=4><p>'"$tobias"'</p>
<font size=7><p>WWW.TOBIASTIME.XYZ</p></font>
<font size=4><p>'"$www"'</p>
<font size=7><p>GIT.TOBIASTIME.XYZ</p></font>
<font size=4><p>'"$git"'</p>' > /var/www/ssl/index.html