
有効期限確認
echo | openssl s_client -connect google.com:443 2>&1 | openssl x509 -dates -noout
アクセス
echo | openssl s_client -connect google.com:443
中間証明書も表示
echo | openssl s_client -showcerts -connect google.com:443
issuer情報を表示
echo | openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -issuer -subject -dates
Signature Algorithmを確認
echo | openssl s_client -connect google.com:443 2>/dev/null |openssl x509 -noout -text -certopt no_signame | grep 'Signature Algorithm:'
GETリクエストを投げる
echo -en "GET / HTTP/1.0\r\nHost: tech.sv-cat.net\r\n\r\n" | openssl s_client -connect tech.sv-cat.net:443 -quiet