[精讚] [會員登入]
794

批次檢查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

你可能感興趣的文章

台中市網路應用競賽試場安排(一) 排試場就跟排班或是排課表一樣, 找不到一個都能讓所有人滿意的結果

利用openssl 一行文產生私鑰及憑證請求檔 openssl 一行產生私鑰及憑證請求檔

資料表更改為多個primary key, MariaDB [database]> describe TABLENAME; 想由本來是兩個PRIMARY KE

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

apache 反向代理 80轉443轉8080 apache, proxy pass

tmux 將終端機切割成多個視 窗 tmux, multiple terminal

隨機好文

axios vuejs application/x-www-form-urlencoded 送資料 VUE.JS 以 application/x-www-form-urlencoded 送資料

ArrayList 想移除特定值 想移出water, 使用lambda 的方式如下 List<String> fruits = new Arr

臺中市校務雲端系統與Windows AD帳號整合(1) active directory,ldaps,雲端校務系統

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

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