added bin and wrote backup script, restore isnt finished

This commit is contained in:
2022-01-14 14:19:09 -05:00
parent e15a76ec40
commit d6c388bfb5
15 changed files with 378 additions and 0 deletions

18
aliases/00_aliases Normal file
View File

@ -0,0 +1,18 @@
function ts() {
date +%Y-%m-%d_%H:%M:%S
}
function check_ssl {
if [[ -z "$1" ]]; then
printf 'usage:\n\ncheck_ssl SITE <port>\n' >&2
return 1
else
site="$1"
fi
if [[ -z "$2" ]]; then
port=443
else
port="$2"
fi
echo | openssl s_client -showcerts -servername "$site" -connect "$site":"$port" 2>/dev/null | openssl x509 -inform pem -noout -text
}