From 2e3e5d9aa21962dec0f1be4636a3f626fc5216c2 Mon Sep 17 00:00:00 2001 From: Timmy Date: Thu, 9 Apr 2026 09:20:16 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=20SSL=20=E6=86=91?= =?UTF-8?q?=E8=AD=89=E7=B4=80=E9=8C=84=EF=BC=8C=E6=9B=B4=E6=96=B0=20README?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 憑證 2026-04-23 到期,憑證鏈不完整需補中繼 CA - README 補充所有文件說明 Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 3 +++ ssl_cert_note.md | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ssl_cert_note.md diff --git a/README.md b/README.md index 314c2a2..d663d15 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ |---|---| | `dns_records.md` | tpech.gov.tw 子網域 DNS A 記錄 | | `ssh_config.md` | SSH 連線架構與跳板機設定 | +| `docker-compose-note.md` | Docker Compose 服務架構筆記 | +| `ssl_cert_note.md` | SSL 憑證資訊與待處理事項 | +| `reset_npm_password.sh` | NPM 管理員密碼重設腳本 | ## 伺服器架構 diff --git a/ssl_cert_note.md b/ssl_cert_note.md new file mode 100644 index 0000000..2bde825 --- /dev/null +++ b/ssl_cert_note.md @@ -0,0 +1,35 @@ +# SSL 憑證紀錄 - tpesupporter.tpech.gov.tw + +## 憑證資訊 + +| 項目 | 內容 | +|---|---| +| CN | tpesupporter.tpech.gov.tw | +| 組織 | 政府機關-臺北市立聯合醫院 | +| 簽發者 | HiPKI OV TLS CA - G1(中華電信) | +| 有效期起 | 2025-04-23 | +| 有效期迄 | 2026-04-23 | +| TLS 版本 | TLSv1.3 | +| 加密套件 | TLS_AES_256_GCM_SHA384 | +| 金鑰 | RSA 2048 bit | + +## 待處理事項 + +- [ ] 憑證將於 **2026-04-23** 到期,需提前更新 +- [ ] 憑證鏈不完整:伺服器僅送出終端憑證,缺少中繼 CA(HiPKI OV TLS CA - G1),需在 NPM 補上中繼憑證 + +## 中繼憑證補充方式 + +1. 下載中繼憑證:https://tls.hinet.net/certs/OVCA-G1.crt +2. 在 NPM 管理後台 (localhost:8181) → SSL Certificates → 編輯對應憑證 +3. 將中繼憑證內容附加到憑證檔案中(或上傳為 intermediate certificate) + +## 檢查指令 + +```bash +# 在 hospital_web 上檢查憑證 +echo | openssl s_client -connect localhost:443 -servername tpesupporter.tpech.gov.tw 2>/dev/null | openssl x509 -noout -dates -subject -issuer + +# 檢查憑證鏈完整性 +echo | openssl s_client -connect localhost:443 -servername tpesupporter.tpech.gov.tw 2>&1 | grep "Verify return code" +```