[精讚] [會員登入]
799

批次檢查tls憑證是否過期

tls憑證一年一簽, 台中市有三百多所學校, 寫成一檔案 skaps.tc.edu.tw www.skaps.tc.ed

分享此文連結 //n.sfs.tw/16406

分享連結 批次檢查tls憑證是否過期@igogo
(文章歡迎轉載,務必尊重版權註明連結來源)
2025-03-14 15:06:16 最後編修
2024-05-01 11:44:33 By igogo
 

 

tls憑證一年一簽, 台中市有三百多所學校, 寫成一檔案
 

skaps.tc.edu.tw
www.skaps.tc.edu.tw

 

checkend 是以秒為單位, 所以抓300天, 60x60x24x300= 25920000

 

 

 

#!/usr/bin/bash

expiredates=25920000 

tclist="./tclist.txt"

while IFS= read -r site
do

echo -n "$site," >> log.csv
echo -n Q | openssl s_client -servername $site -connect $site:443 | openssl x509 -noout -checkend $expiredates >> log.csv
sleep 2
done < "$tclist"

 

END

你可能感興趣的文章

網站無障礙規範 https://accessibility.ncc.gov.tw/News/Detail/3238?Category=4

在docker裡跑spring boot+mongo(二) 使用docker-compose 管理多個container 前篇使用docker run 一次建一個container

使用expect 讀取外部資料存成陣列 使用expect 讀取外部資料存成陣列

在docker裡跑spring boot+mongo(一) 系統安裝docker ce centos7 + docker ce https://docs.docker.com/in

如何檢查網站憑證是否過期 檢查網站憑證

[shell script] 批次判斷domain name 正解設定 判斷dns 正解設定

隨機好文

download a file from spring boot controllers ownload a file from spring boot controllers

centos 7 移机出現 dracut-initqueue timeout centos 7 移机出現 dracut-initqueue timeout 處理

vue.js component 在parent與child 傳值 component 在parent與child 傳值

編碼的順序 utf8 big5

雲端校務系統與OPENLDAP帳號整合(3) 二 建置更改密碼服務 下載校端更改密碼程式: 連結 檢查是否安裝java 8 #java -version 安裝open