1.通過域名獲取:
echo | openssl s_client -servername 域名 -connect 域名:443 2>/dev/null | openssl x509 -noout -dates
Not Before: Jun 16 11:31:29 2015 GMT(起)
Not After : Jun 17 02:38:48 2018 GMT(止)
2.通過證書獲取
openssl x509 -in dingkai.crt(證書文件名,不是key) -noout -text
1.通過域名獲取:
echo | openssl s_client -servername 域名 -connect 域名:443 2>/dev/null | openssl x509 -noout -dates
Not Before: Jun 16 11:31:29 2015 GMT(起)
Not After : Jun 17 02:38:48 2018 GMT(止)
2.通過證書獲取
openssl x509 -in dingkai.crt(證書文件名,不是key) -noout -text
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。