Skip to content

Commit

Permalink
security-utils: Make cert public as we need access to pems directly (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andronat authored Sep 12, 2024
1 parent ae5b17d commit 9a3eb4e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions security-utils/src/reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,72 +10,72 @@ pub use reqwest;
// Amazon Trust Services - https://www.amazontrust.com/repository/
// Updated by @oldgalileo (17/07/2024)
//
static AWS_ROOT_CA1_CERT: &[u8] = include_bytes!(concat!(
pub static AWS_ROOT_CA1_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/AmazonRootCA1.pem"
));
static AWS_ROOT_CA1_SHA256: [u8; 32] =
pub static AWS_ROOT_CA1_SHA256: [u8; 32] =
hex!("2c43952ee9e000ff2acc4e2ed0897c0a72ad5fa72c3d934e81741cbd54f05bd1");

static AWS_ROOT_CA2_CERT: &[u8] = include_bytes!(concat!(
pub static AWS_ROOT_CA2_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/AmazonRootCA2.pem"
));
static AWS_ROOT_CA2_SHA256: [u8; 32] =
pub static AWS_ROOT_CA2_SHA256: [u8; 32] =
hex!("a3a7fe25439d9a9b50f60af43684444d798a4c869305bf615881e5c84a44c1a2");

static AWS_ROOT_CA3_CERT: &[u8] = include_bytes!(concat!(
pub static AWS_ROOT_CA3_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/AmazonRootCA3.pem"
));
static AWS_ROOT_CA3_SHA256: [u8; 32] =
pub static AWS_ROOT_CA3_SHA256: [u8; 32] =
hex!("3eb7c3258f4af9222033dc1bb3dd2c7cfa0982b98e39fb8e9dc095cfeb38126c");

static AWS_ROOT_CA4_CERT: &[u8] = include_bytes!(concat!(
pub static AWS_ROOT_CA4_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/AmazonRootCA4.pem"
));
static AWS_ROOT_CA4_SHA256: [u8; 32] =
pub static AWS_ROOT_CA4_SHA256: [u8; 32] =
hex!("b0b7961120481e33670315b2f843e643c42f693c7a1010eb9555e06ddc730214");

// Starfield Root CA G2 certificate (acquired by Amazon)
static SFS_ROOT_G2_CERT: &[u8] = include_bytes!(concat!(
pub static SFS_ROOT_G2_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/SFSRootCAG2.pem"
));
static SFS_ROOT_G2_SHA256: [u8; 32] =
pub static SFS_ROOT_G2_SHA256: [u8; 32] =
hex!("870f56d009d8aeb95b716b0e7b0020225d542c4b283b9ed896edf97428d6712e");

//
// Google Trust Services - https://pki.goog/
// Updated by @oldgalileo (16/07/2024)
//
static GTS_ROOT_R1_CERT: &[u8] = include_bytes!(concat!(
pub static GTS_ROOT_R1_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/GTS_Root_R1.pem"
));
static GTS_ROOT_R1_SHA256: [u8; 32] =
pub static GTS_ROOT_R1_SHA256: [u8; 32] =
hex!("4195ea007a7ef8d3e2d338e8d9ff0083198e36bfa025442ddf41bb5213904fc2");

static GTS_ROOT_R2_CERT: &[u8] = include_bytes!(concat!(
pub static GTS_ROOT_R2_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/GTS_Root_R2.pem"
));
static GTS_ROOT_R2_SHA256: [u8; 32] =
pub static GTS_ROOT_R2_SHA256: [u8; 32] =
hex!("1a49076630e489e4b1056804fb6c768397a9de52b236609aaf6ec5b94ce508ec");

static GTS_ROOT_R3_CERT: &[u8] = include_bytes!(concat!(
pub static GTS_ROOT_R3_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/GTS_Root_R3.pem"
));
static GTS_ROOT_R3_SHA256: [u8; 32] =
pub static GTS_ROOT_R3_SHA256: [u8; 32] =
hex!("39238e09bb7d30e39fbf87746ceac206f7ec206cff3d73c743e3f818ca2ec54f");

static GTS_ROOT_R4_CERT: &[u8] = include_bytes!(concat!(
pub static GTS_ROOT_R4_CERT: &[u8] = include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/certs/GTS_Root_R4.pem"
));
static GTS_ROOT_R4_SHA256: [u8; 32] =
pub static GTS_ROOT_R4_SHA256: [u8; 32] =
hex!("7e8b80d078d3dd77d3ed2108dd2b33412c12d7d72cb0965741c70708691776a2");

/// Important certificates we vendor for security
Expand Down

0 comments on commit 9a3eb4e

Please sign in to comment.