The MongoDB release team digitally signs MongoDB Compass packages to certify that packages are a valid and unaltered MongoDB release. Before you install MongoDB Compass, you can use the digital signature to validate the package.MongoDB发布团队对MongoDB Compass包进行数字签名,以证明该包是有效且未更改的MongoDB版本。在安装MongoDB Compass之前,您可以使用数字签名来验证包。
This page describes how to verify Windows 本页介绍如何验证Windows .exe and .msi packages..exe和.msi软件包。
Before you Begin开始之前
If you don't have MongoDB Compass installed, download the MongoDB Compass binary from the Download Center.如果您没有安装MongoDB Compass,请从下载中心下载MongoDB Compass二进制文件。
Steps步骤
To verify the MongoDB Compass package on Windows, you can use one of these methods:要在Windows上验证MongoDB Compass包,您可以使用以下方法之一:
Verify Packages with PowerShell使用PowerShell验证软件包
To verify Windows packages with PowerShell, run:要使用PowerShell验证Windows软件包,请运行:
powershell Get-AuthenticodeSignature -FilePath <path_to_compass_exe_or_msi>
If the file is signed, the command returns:如果文件已签名,则命令返回:
SignerCertificate Status Path
----------------- ------ ----
F2D7C28591847B... Valid <path_to_compass_exe_or_msi>Verify Packages by Checking Properties通过检查属性来验证包
Check the package's digital signatures检查包裹的数字签名
In the properties window, open the Digital Signatures tab.在属性窗口中,打开“数字签名”选项卡。
If the package is properly signed, the Digital Signatures show these properties:如果包已正确签名,数字签名将显示以下属性:
| MONGODB, INC. | sha256 | <Timestamp> |