Certificate Manager (第 2 代) 總覽資訊主頁可協助您維護安全且健康的憑證環境。您可以使用資訊主頁找出即將到期的憑證、稽核資安態勢,以及追蹤核發趨勢。
總覽資訊主頁包含下列監控圖表:
- 過去 7 天內核發的憑證數量:追蹤過去 7 天內核發的憑證總數。
- Certificates issued by authority type (依授權類型核發的憑證):依授權類型 (公開、私人或不明) 將憑證分組。
- Certificates issued by location (依位置核發的憑證):依部署位置,按地理位置排序憑證。
- 即將到期的憑證:顯示 7 天和 30 天內到期的憑證。
事前準備
- 登入 Google Cloud 帳戶。如果您未曾使用過 Google Cloud,歡迎 建立帳戶,親自體驗實際使用我們產品的成效。新客戶還能獲得價值 $300 美元的免費抵免額,用於執行、測試及部署工作負載。
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Certificate Authority Service, Certificate Manager APIs, if any are not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Certificate Authority Service, Certificate Manager APIs, if any are not already enabled.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
必要的角色
如要取得監控憑證所需的權限,請要求管理員在專案中授予您下列 IAM 角色:
- Certificate Manager 檢視者 (
roles/certificatemanager.viewer) - Monitoring 檢視者 (
roles/monitoring.viewer)
如要進一步瞭解如何授予角色,請參閱「管理專案、資料夾和組織的存取權」。
存取總覽資訊主頁
如要存取資訊主頁並查看憑證指標,請按照下列步驟操作:
前往 Google Cloud 控制台的「Certificate Manager」頁面。
選用:如要調整時間範圍,請使用資訊主頁右上方的時間選取器。根據預設,資訊主頁會顯示過去 7 天的指標。
資訊主頁資料每 24 小時更新一次。
監控憑證健康狀態和到期日
資訊主頁提供的指標專門針對長期憑證,也就是效期超過 72 小時的憑證。
Certificate Manager (第 2 代) 會排除短期憑證 (效期不到 72 小時),因為這類憑證會頻繁自動輪替,不需要像長期憑證一樣手動監控。
如要監控需要手動處理的即將到期憑證,請按照下列步驟操作:
- 在資訊主頁上找到「即將到期的憑證」圖表。
- 查看即將到期的憑證警告。
- 如果收到到期警告,請使用憑證身分搜尋商品目錄,確認是否已有替代憑證。詳情請參閱「篩選憑證庫存」。
稽核憑證清單
在資訊主頁的「Inventory metrics」(庫存指標) 部分,稽核所選時間範圍內環境中的有效憑證。
如要稽核商品目錄,請查看依下列條件分類的憑證:
- 依資源查看使用中的憑證:根據核發憑證的 Google Cloud 資源追蹤憑證數量。Certificate Manager (第 2 代) 會識別由代管 Workload Identity 或負載平衡核發的憑證;透過憑證授權單位服務核發的其他憑證則會歸類為「未指定」。詳情請參閱「支援的服務」。
- 依金鑰演算法查看有效憑證:依葉金鑰演算法 (例如 RSA 或 ECDSA) 將憑證分組,稽核加密編譯標準。確保符合貴機構的安全政策。
- 依金鑰用途設定檔查看使用中的憑證:依預定用途將憑證分組。Certificate Manager 會根據最相符的設定檔,為憑證加上標籤。如果無法判斷設定檔,則會標示為「Other」(其他)。
如要查看任一類別中的特定憑證,請按一下「View certificates」(查看憑證),開啟清單頁面。
追蹤憑證核發趨勢
使用「Issuance metrics」(核發指標) 圖表,監控設定的服務如何隨著時間產生憑證。這種做法有助於追蹤成長情況,並找出潛在的核發異常狀況。
如要追蹤核發趨勢,請監控下列指標:
- 依位置核發的憑證:查看每個位置核發的憑證數量,瞭解憑證數量的地理分布情形。
- 依授權單位類型核發的憑證:查看公開 CA (例如 Public Certificate Authority) 和私人 CA (例如 CA 服務) 核發的憑證數量。
- 核發的憑證總數:監控所選時間範圍內核發的憑證總數,瞭解環境規模。