You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/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:]]+//' |
|
|
|
|