certificate
Bash scripts to check whether a site is available or not, and whether the certificate is valid or not.
1) urls_check.sh
Usage: urls_check.sh
- Check whether the certificate is valid or not, using showcert (pip install showcert) if available, else use openssl.
- Check if the url is up or down with it's http_code.
Required the urls_list.txt file that contain a list of domains:
#https://notif.domain.com
#https://ntfy.domain.com
https://paperlessngx.domain.com
https://pastebin.domain.com
# comment line to disable checking this url
Required the status.txt file to give information about the http code returned.
302;Found;https://developer.mozilla.org/fr/docs/Web/HTTP/Status/302
2) validity.sh
Usage: ./validity.sh
Check whether the certificate is valid or not, using showcert (pip install showcert) if available, else use openssl.
Required the validity_domains.txt file that contain a list of domains:
domain1.com
domain2.fr
or edit the hosts() array in source code.
Description
Languages
Shell
100%