python 查詢網站 ssl 的憑證到期日
import ssl
import socket
from datetime import datetime
def get_ssl_expiry_date(hostname, port=443):
context = ssl.create_default_context()
with socket.create_connection((hostname, port)) as sock:
with context.wrap_socket(sock, server_hostname=hostname) as ssock:
cert = ssock.getpeercert()
# 取得過期日期並轉為 datetime 格式
expiry_str = cert['notAfter']
expiry_date = datetime.strptime(expiry_str, '%b %d %H:%M:%S %Y %Z')
return expiry_date
# 測試
hostname = 'tw.yahoo.com'
expiry_date = get_ssl_expiry_date(hostname)
print(f"{hostname} 的 SSL 憑證到期日是:{expiry_date}")
https://www.google.com/maps/search/23.882309,+120.702162?coh=277533&entry=tts&g_ep=EgoyMDI2MDExOS4wIPu8ASoKLDEwMDc5MjA2OUgBUAM%3D&skid=756a1055-ea44-48e1-a836-e420089f41be
windows 常用指令參考
磁碟管理
runas /user:user "mmc %windir%\system32\diskmgmt.msc"
防火牆
runas /user:user "mmc %windir%\system32\wf.msc"
網路連線
runas /user:user "control.exe ncpa.cpl"
工作排程器
runas /user:user "mmc %windir%\system32\taskschd.msc"
檔案總管
explorer
裝置管理員
runas /user:user "mmc %windir%\system32\devmgmt.msc"
本機使用者和群組 (家用版沒有)
runas /user:user "mmc %windir%\system32\lusrmgr.msc"
事件檢視器
runas /user:user "mmc %windir%\system32\eventvwr.msc"
網路和共用中心
runas /user:user "control.exe /name Microsoft.NetworkAndSharingCenter"
工作管理員
找到 C:\Windows\System32\taskmgr.exe
右鍵 → 以系統管理員身分執行
資源監視器
runas /user:user "C:\Windows\System32\resmon.exe"
服務
runas /user:user "mmc %windir%\system32\services.msc"
程式和功能
runas /user:user "control.exe appwiz.cpl"
https://cbetaonline.dila.edu.tw/zh/T0278_001
大方廣佛華嚴經卷第一
東晉天竺三藏佛馱跋陀羅譯
共60卷 / 共34品 (依梵文本甲翻成中文)
https://cbetaonline.dila.edu.tw/zh/T0279_001
大方廣佛華嚴經卷第一
于闐國三藏實叉難陀奉制譯
共80卷 / 共39品 (依梵文本甲翻成中文)
https://cbetaonline.dila.edu.tw/zh/T0293_001
大方廣佛華嚴經卷第一
罽賓國三藏般若奉詔譯
共40卷 / 另一版本的入法界品 (依梵文本乙翻成中文)