Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- #!/bin/bash
- if [ ! -z "$DEBUG" ]; then
- set -x
- DEBUG=
- fi
- DOMLIST="example.com"
- for D in $DOMLIST
- do
- if true | openssl s_client -connect $PREFIX${D}:443 2>/dev/null | openssl x509 -noout -checkend 0; then echo 'Certificate is not expired for '$PREFIX${D}' '; else echo 'Certificate is expired for '$PREFIX${D}' ' > ssl_log.txt; fi
- done
- ```
Add Comment
Please, Sign In to add comment