怎么使用curl命令检测一个网站的https证书有效期

使用以下命令

# curl  https://www.baidu.com/ -v 2>&1|grep -i "date"
*  start date: Jul  8 01:41:02 2024 GMT
*  expire date: Aug  9 01:41:01 2025 GMT
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Date: Thu, 02 Jan 2025 09:03:10 GMT
posted @ 2025-01-02 17:04  minseo  阅读(189)  评论(0)    收藏  举报