Loading

SSL证书查看

#!/bin/bash

# filename checkSSLCertificate.sh

# 使用方法 checkSSLCertificate.sh domain server_ip

echo | openssl s_client -showcerts -servername $1 -connect $2:443 2>/dev/null | openssl x509 -inform pem -noout -text
posted @ 2023-02-21 17:36  小维江湖  阅读(30)  评论(0编辑  收藏  举报