docs: 更新 SSL 憑證紀錄為目前部署狀態

- 新憑證(GCA G3)已於 2026-04-09 部署完成
- 補充憑證鏈結構與 GRCA 信任庫說明
- 更新歷史紀錄

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 10:30:00 +08:00
parent 87234b458a
commit bbea2fe77a
2 changed files with 41 additions and 17 deletions

View File

@@ -1,35 +1,55 @@
# SSL 憑證紀錄 - tpesupporter.tpech.gov.tw # SSL 憑證紀錄 - tpesupporter.tpech.gov.tw
## 憑證資訊 ## 目前使用中的憑證(已於 2026-04-09 部署)
| 項目 | 內容 | | 項目 | 內容 |
|---|---| |---|---|
| CN | tpesupporter.tpech.gov.tw | | CN | tpesupporter.tpech.gov.tw |
| 組織 | 政府機關-臺北市立聯合醫院 | | 組織 | 政府 / 衛生局 / 市立聯合醫院 |
| 簽發者 | HiPKI OV TLS CA - G1中華電信 | | 簽發者 | 政府憑證管理中心 - G3GCA |
| 有效期起 | 2025-04-23 | | 有效期起 | 2026-04-01 |
| 有效期迄 | 2026-04-23 | | 有效期迄 | 2028-04-01 |
| TLS 版本 | TLSv1.3 | | TLS 版本 | TLSv1.3 |
| 加密套件 | TLS_AES_256_GCM_SHA384 | | 加密套件 | TLS_AES_256_GCM_SHA384 |
| 金鑰 | RSA 2048 bit | | 金鑰 | RSA 2048 bit |
## 待處理事項 ## 憑證鏈
- [ ] 憑證將於 **2026-04-23** 到期,需提前更新 ```
- [ ] 憑證鏈不完整:伺服器僅送出終端憑證,缺少中繼 CAHiPKI OV TLS CA - G1需在 NPM 補上中繼憑證 0: tpesupporter.tpech.gov.tw (伺服器憑證)
└─ issued by: 政府憑證管理中心 - G3
1: 政府憑證管理中心 (中繼憑證)
└─ issued by: Government Root Certification Authority
2: 政府憑證管理中心 - G3 (中繼憑證)
└─ issued by: Government Root Certification Authority - G3
```
## 中繼憑證補充方式 > 注意GRCA G3 根憑證不在 Linux 預設信任庫中,伺服器端 openssl 驗證會顯示
> `Verify return code: 20 (unable to get local issuer certificate)`
> 但瀏覽器端Chrome/Edge/Firefox通常可正常驗證。
1. 下載中繼憑證https://tls.hinet.net/certs/OVCA-G1.crt ## 歷史紀錄
2. 在 NPM 管理後台 (localhost:8181) → SSL Certificates → 編輯對應憑證
3. 將中繼憑證內容附加到憑證檔案中(或上傳為 intermediate certificate | 期間 | 簽發者 | 到期日 | 備註 |
|---|---|---|---|
| 2025-04 ~ 2026-04 | HiPKI OV TLS CA - G1中華電信 | 2026-04-23 | 已替換 |
| 2026-04 ~ 2028-04 | 政府憑證管理中心 - G3GCA | 2028-04-01 | 目前使用中 |
## 檢查指令 ## 檢查指令
```bash ```bash
# 在 hospital_web 上檢查憑證 # 在 hospital_web 上檢查憑證
echo | openssl s_client -connect localhost:443 -servername tpesupporter.tpech.gov.tw 2>/dev/null | openssl x509 -noout -dates -subject -issuer ssh 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" ssh hospital_web "echo | openssl s_client -connect localhost:443 \
-servername tpesupporter.tpech.gov.tw 2>&1 \
| grep -E 'depth|s:|i:|Verify return'"
``` ```
## 相關文件
- `ssl_deploy_guide.md` — 憑證部署 SOP
- `ssl_certs/` — 憑證檔案存放目錄

View File

@@ -110,6 +110,10 @@ ssh hospital_web "echo | openssl s_client -connect localhost:443 \
預期:`Verify return code: 0 (ok)` 預期:`Verify return code: 0 (ok)`
> 注意GCA 憑證的根 CAGRCA G3不在 Linux 預設信任庫,
> 伺服器端會顯示 `Verify return code: 20`,這是正常的。
> 瀏覽器端通常可正常驗證。
--- ---
## 替代方案:透過 NPM 管理後台 ## 替代方案:透過 NPM 管理後台
@@ -127,5 +131,5 @@ ssh hospital_web "echo | openssl s_client -connect localhost:443 \
| 期間 | 簽發者 | 到期日 | 備註 | | 期間 | 簽發者 | 到期日 | 備註 |
|---|---|---|---| |---|---|---|---|
| 2025-04 ~ 2026-04 | HiPKI OV TLS CA - G1中華電信 | 2026-04-23 | 憑證鏈不完整,缺中繼 CA | | 2025-04 ~ 2026-04 | HiPKI OV TLS CA - G1中華電信 | 2026-04-23 | 已替換 |
| 2026-04 ~ 2028-04 | 政府憑證管理中心 - G3GCA | 2028-04-01 | 待部署,私鑰待確認 | | 2026-04 ~ 2028-04 | 政府憑證管理中心 - G3GCA | 2028-04-01 | 2026-04-09 部署完成 |