文件首頁
MySQL 8.4 參考手冊
相關文件 下載本手冊
PDF (US Ltr) - 39.9Mb
PDF (A4) - 40.0Mb
手冊頁 (TGZ) - 258.5Kb
手冊頁 (Zip) - 365.5Kb
資訊 (Gzip) - 4.0Mb
資訊 (Zip) - 4.0Mb


MySQL 8.4 參考手冊  /  ...  /  使用 Gpg4win 於 Windows 進行簽章檢查

2.1.4.3 使用 Gpg4win 於 Windows 進行簽章檢查

第 2.1.4.2 節「使用 GnuPG 進行簽章檢查」說明如何使用 GPG 驗證 MySQL 下載。該指南也適用於 Microsoft Windows,但另一個選項是使用像 Gpg4win 這樣的 GUI 工具。您可以使用不同的工具,但我們的範例是基於 Gpg4win,並使用其捆綁的 Kleopatra GUI。

下載並安裝 Gpg4win,載入 Kleopatra,並新增 MySQL Release Engineering 憑證。方法是按一下 檔案在伺服器上查詢。在搜尋方塊中輸入「Mysql Release Engineering」,然後按下 搜尋

圖 2.1 Kleopatra:在伺服器上查詢精靈:尋找憑證

Shows a search input field titled "Find" with "MySQL Release Engineering" entered. The one result contains the following values: Name=MySQL Release Engineering, E-Mail=mysql-build@oss.oracle.com, Valid From=2021-12-14, Valid Until="Unknown", and Key-ID=467B 942D 3A79 BD29. Available action buttons are: Search, Select All, Deselect All, Details, Import, and Close.

選取「MySQL Release Engineering」憑證。金鑰 ID 必須參考「3A79 BD29」,或選擇 詳細資訊... 來確認憑證是否有效。現在,按一下 匯入 來匯入它。當顯示匯入對話方塊時,選擇 確定,此憑證現在應列在 匯入的憑證 標籤下。

接下來,授予憑證信任。選取我們的憑證,然後從主選單中選取 憑證變更認證權限,然後按一下 授予權限

圖 2.2 Kleopatra:授予 MySQL Release Engineering 的認證權限

A "Grant Certification Power" dialogue is displayed. Available action buttons are: Grant Power and Cancel.

接下來,驗證下載的 MySQL 套件檔案。這需要套件檔案和簽章的檔案。簽章檔案的名稱必須與套件檔案相同,但附加 .asc 副檔名,如下表中的範例所示。簽章連結於每個 MySQL 產品的下載頁面。您必須使用此簽章建立 .asc 檔案。

表 2.2 適用於 Microsoft Windows 的 MySQL Server MSI 的 MySQL 套件與簽章檔案

檔案類型 檔案名稱
發行檔案 mysql-8.4.0-winx64.msi
簽章檔案 mysql-8.4.0-winx64.msi.asc

請確定這兩個檔案都儲存在相同的目錄中,然後執行以下命令來驗證發行檔案的簽章。從 檔案解密/驗證檔案... 載入對話方塊,然後選擇 .asc 檔案。

兩個最常見的結果如下圖所示;雖然「無法驗證資料」警告看起來有問題,但檔案檢查已成功通過。有關此警告含義的詳細資訊,請按一下 顯示稽核記錄 並將其與 第 2.1.4.2 節「使用 GnuPG 進行簽章檢查」進行比較。您現在可以執行 MSI 檔案。

圖 2.3 Kleopatra:解密和驗證結果對話方塊:成功

It shows "The data could not be verified", and also shown is key information, such as the KeyID and email address, the key's sign on date, and also displays the name of the ASC file..

看到類似 驗證失敗:無資料。的錯誤表示檔案無效。如果您看到此錯誤,請勿執行 MSI 檔案。

圖 2.4 Kleopatra:解密和驗證結果對話方塊:不良

It shows "Verification failed: No data." and also displays the name of the ASC file.