Browse Source

++check-cert

master
Maxim Likhachev 5 years ago
parent
commit
17f66c8ea7
  1. 4
      README.md
  2. 8
      scripts/check-cert

4
README.md

@ -64,6 +64,10 @@ will create the symbolic link for each script in the \<path> directory. @@ -64,6 +64,10 @@ will create the symbolic link for each script in the \<path> directory.
- [mem](scripts/mem) stores the shorts notes in the file.
- [pomodoro](scripts/pomodoro) tracks the working time.
## Network
- [check-cert](scripts/check-cert) retrieves information about web site's TLS certificate.
## WWW
- [bor](scripts/bor) displays the latest posts from [bash.im](https://bash.im) website.

8
scripts/check-cert

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#!/usr/bin/env bash
DOMAIN=${1:?USAGE: check-cert [domain name]}
echo | { openssl s_client -connect "${DOMAIN}:443" \
| openssl x509 -noout -dates;
} 2>&1 | sed -E '/verify|DONE/d; s/^depth=[0-9]+[[:space:]]+//'
Loading…
Cancel
Save