#!/bin/bash
set -euo pipefail
mkdir zero
for i in {1..1000000}; do
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 | |
| set -euo pipefail | |
| name=${1?You must set the DNS name to check.} | |
| host=${2:-$1} | |
| port=${3:-443} | |
| # https://www.shellhacks.com/openssl-check-ssl-certificate-expiration-date/ | |
| echo | openssl s_client -servername "$name" -connect "$host":"$port" 2>/dev/null | openssl x509 -noout -subject -issuer -startdate -enddate -ocsp_uri -fingerprint -sha256 |
OlderNewer