Guest User

Untitled

a guest
Jun 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ```
  2. #!/bin/bash
  3.  
  4. if [ ! -z "$DEBUG" ]; then
  5. set -x
  6. DEBUG=
  7. fi
  8. DOMLIST="example.com"
  9.  
  10. for D in $DOMLIST
  11. do
  12. 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
  13. done
  14. ```
Add Comment
Please, Sign In to add comment