1.經過域名獲取:server
echo | openssl s_client -servername 域名 -connect 域名:443 2>/dev/null | openssl x509 -noout -datesssl
Not Before: Jun 16 11:31:29 2015 GMT(起)
Not After : Jun 17 02:38:48 2018 GMT(止)openssl
2.經過證書獲取域名
openssl x509 -in dingkai.crt(證書文件名,不是key) -noout -textcli