Add configs/ssl_check.sh
This commit is contained in:
38
configs/ssl_check.sh
Normal file
38
configs/ssl_check.sh
Normal 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
|
||||
Reference in New Issue
Block a user