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 本页介绍如何在macOS上验证.dmg packages on macOS..dmg包。
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, run:要验证MongoDB Compass包,请运行:
codesign -dv --verbose=4 <path_to_compass_executable>
If the package is signed by MongoDB, the output includes the following information:如果包是由MongoDB签名的,则输出包括以下信息:
Authority=Developer ID Application: MongoDB, Inc. (4XWMY46275)
Authority=Developer ID Certification Authority
Authority=Apple Root CA