验证 AWS OpsHub 的签名(可选) - AWS Snowball Edge Developer Guide
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

验证 AWS OpsHub 的签名(可选)

您可以在 Linux 客户端计算机上安装适用于雪系列的 AWS OpsHub 应用程序。适用于 Linux 的 AWS OpsHub 应用程序安装程序包是以加密方式签名的。您可以使用公有密钥验证安装程序包是否为原始的而未进行修改。如果文件损坏或更改,验证将失败。您可以使用 GPG 验证安装程序包的签名。此验证是可选的。如果您选择验证应用程序的签名,则可以随时执行此操作。

您可以在 Linux 安装程序的签名文件AWS Snowcone 资源页面或者Snowball Edge 资源页面

验证 Linux 客户端计算机上的 AWS OpsHub 软件包

  1. 复制以下公有密钥,并将其保存到某个文件并命名该文件。例如opshub-public-key.pgp

    -----BEGIN PGP PUBLIC KEY BLOCK----- xsFNBF/hGf8BEAC9HCDV8uljDX02Jxspi6kmPu4xqf4ZZLQsSqJcHU61oL/c /zAN+mUqJT9aJ1rr0QFGVD1bMogecUPflTWlDkEEpG8ZbX5P8vR+EElO/rW/ WtqizSudy6qy59ZRK+YVSDx7DZyuJmIO7j00UADCL+95ZQN9vqwHNjBHsgfQ l/1Tqhy81ozTZXcI/+u+99YLaugJIP6ZYIeDfpxnghqyVtaappBFTAyfG67Y N/5mea1VqJzd8liFpIFQnl+X7U2x6emDbM01yJWV3aMmPwhtQ7iBdt5a4x82 EF5bZJ8HSRMvANDILD/9VTN8VfUQGKFjFY2GdX9ERwvfTb47bbv9Z28Vl284 4lw2w1Bl007FoO2v/Y0ukrN3VHCpmJQS1IiqZbYRa0DVK6UR5QNvUlj5fwWs 4qW9UDPhT/HDuaMrMFCejEn/7wvRUrGVtzCT9F56Al/dwRSxBejQQEb1AC8j uuyi7gJaPdyNntROEFTD7iO2L6X2jB4YLfvGxP7Xeq1Y37t8NKF8CYTpOry/ Wvw0iKZFbo4AkiI0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4gOiiSloTp5oi3EuAYRGflXuqAT VA19bKnpkBsJ0A== =tD2T -----END PGP PUBLIC KEY BLOCK-----
  2. 将公有密钥导入到您的密钥环中,并记下返回的密钥值。

    GPG
    gpg --import opshub-public-key.pgp

    输出示例

    gpg: key 1655BBDE2B770256: public key "AWS OpsHub for Snow Family <aws-opshub-signer@amazon.com>" imported gpg: Total number processed: 1 gpg: imported: 1
  3. 验证指纹。请务必将替换为 key-value 使用上一步中的值。建议使用 GPG 来验证指纹。

    gpg --fingerprint key-value

    此命令会返回类似以下内容的输出:

    pub rsa4096 2020-12-21 [SC] 372F A5E9 4869 8F77 D1B3 AFAA 2181 CF5A 74F3 45F1 uid [ unknown] AWS OpsHub for Snow Family <aws-opshub-signer@amazon.com> sub rsa4096 2020-12-21 [E]

    指纹应符合以下情况:

    372F A5E9 4869 8F77 D1B3 AFAA 2181 CF5A 74F3 45F1

    如果指纹不匹配,请不要安装 AWS OpsHub 应用程序。联系 AWS Support。

  4. 验证安装程序包,请根据实例的体系结构和操作系统下载签名文件(如果您尚未执行此操作)。

  5. 验证安装程序包签名。请务必将替换为 signature-filenameOpsHub-download-filename 替换为您在下载签名文件和 AWS OpsHub 应用程序时指定的值。

    GPG
    gpg --verify signature-filename OpsHub-download-filename

    此命令会返回类似以下内容的输出:

    GPG
    gpg: Signature made Mon Dec 21 13:44:47 2020 PST gpg: using RSA key 1655BBDE2B770256 gpg: Good signature from "AWS OpsHub for Snow Family <aws-opshub-signer@amazon.com>" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: 9C93 4C3B 61F8 C434 9F94 5CA0 1655 BBDE 2B77 0256

    使用 GPG 时,如果输出包含短语BAD signature,请检查是否正确执行了此过程。如果您继续获得该响应,请与 AWS Support 联系,并不要安装代理。有关信任的警告消息并不意味着签名无效,只是您尚未验证公有密钥而已。只有当您或您信任的某个人对密钥进行了签名,密钥才是可信的。