文件首頁
MySQL 9.0 參考手冊
相關文件 下載本手冊
PDF (美式信紙) - 40.0Mb
PDF (A4) - 40.1Mb
Man 頁面 (TGZ) - 258.2Kb
Man 頁面 (Zip) - 365.3Kb
資訊 (Gzip) - 4.0Mb
資訊 (Zip) - 4.0Mb


MySQL 9.0 參考手冊  /  ...  /  使用 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 伺服器 MSI 的 MySQL 套件和簽章檔案

檔案類型 檔案名稱
發行檔案 mysql-9.0.0-winx64.msi
簽章檔案 mysql-9.0.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.