From 498594e10f631ed3bc9d8e6c9f154b5f5620a246 Mon Sep 17 00:00:00 2001 From: Christian Reitter Date: Thu, 7 Mar 2024 14:09:17 +0100 Subject: [PATCH] Improve documentation on AWS Nitro root CA file verification --- src/qos_nsm/src/nitro/mod.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/qos_nsm/src/nitro/mod.rs b/src/qos_nsm/src/nitro/mod.rs index d58f08d0..12526e28 100644 --- a/src/qos_nsm/src/nitro/mod.rs +++ b/src/qos_nsm/src/nitro/mod.rs @@ -27,11 +27,17 @@ static AWS_NITRO_CERT_SIG_ALG: &[&webpki::SignatureAlgorithm] = &[&webpki::ECDSA_P384_SHA384]; /// AWS Nitro root CA certificate. -/// -/// This should be validated against the checksum: -/// `8cf60e2b2efca96c6a9e71e851d00c1b6991cc09eadbe64a6a1d1b1eb9faff7c`. This -/// checksum and the certificate should be manually verified against +/// +/// The root certificate can be downloaded from +/// , +/// and it can be verified using the following SHA256 checksum: +/// `8cf60e2b2efca96c6a9e71e851d00c1b6991cc09eadbe64a6a1d1b1eb9faff7c`. +/// This official hash checksum is over the AWS-provided zip file. +/// For context and additional verification details, see /// . +/// +/// The `aws_root_cert.pem` contents hash as follows via SHA256: +/// `6eb9688305e4bbca67f44b59c29a0661ae930f09b5945b5d1d9ae01125c8d6c0`. pub const AWS_ROOT_CERT_PEM: &[u8] = std::include_bytes!("./static/aws_root_cert.pem");