1
0
Fork 0

added script to check ssl cert validity for domains and an alias for it too

This commit is contained in:
Pratham Patel 2022-12-11 19:03:50 +05:30
parent e9ad2d52d7
commit bfd197d1ce
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
MY_DOMAINS=( \
"blog.thefossguy.com" \
"git.thefossguy.com" \
"mach.thefossguy.com" \
"cloud.thefossguy.com" \
"admin.thefossguy.com" \
"notify.thefossguy.com" \
"torr.thefossguy.com" \
)
for DOMAIN in ${MY_DOMAINS[@]}; do
echo "################################################################################"
echo "For domain $DOMAIN:"
openssl s_client -servername "$DOMAIN" -connect "$DOMAIN:443" | openssl x509 -noout -dates
done

0
.scripts/common-scripts/sort.py Normal file → Executable file
View File

View File

@ -27,6 +27,7 @@ alias custcp="rsync --verbose --recursive --size-only --human-readable --progres
alias pysort="$HOME/.scripts/other/sort.py"
alias download="aria2c -x 16 -k 1M --file-allocation=none --continue=false"
alias vim="nvim"
alias showsslvalidity="~/.scripts/common-scripts/domain_ssl_validity.sh"
alias ytdown="yt-dlp --config-location $HOME/.config/yt-dlp/norm_config --external-downloader aria2c"
alias playdl="yt-dlp --config-location $HOME/.config/yt-dlp/plst_config --external-downloader aria2c"
alias ytslow="yt-dlp --config-location $HOME/.config/yt-dlp/norm_config --no-part --concurrent-fragments 1 --limit-rate 4M"