Created
February 9, 2026 08:26
-
-
Save luc-tielen/6df1aa38076376f141d6c202521b5a22 to your computer and use it in GitHub Desktop.
Certificate expiration script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 <domain>" >&2 | |
| exit 1 | |
| fi | |
| DOMAIN="$1" | |
| echo \ | |
| | openssl s_client -servername "${DOMAIN}" -connect "${DOMAIN}":443 2> /dev/null \ | |
| | openssl x509 -noout -dates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment