Skip to content

Commit 2541061

Browse files
update real world certificates (#207)
1 parent 69dce55 commit 2541061

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

admin/MAINTAINENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on our mock CA and the certificates issued by it. As such, they will expire abou
1010

1111
Thankfully, updating these has become easy:
1212
- If the `verification_real_world` tests are failing, do the following:
13-
1. Run `cargo run --example update-certs.rs`
13+
1. Run `cargo run --example update-certs`
1414
2. Using your tool of choice, update the hardcoded time in `verification_time` to match the current datetime.
1515
3. Commit your changes and push up a fix branch/PR.
1616
- If the `verification_mock` tests are failing, do the following:

rustls-platform-verifier/src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ pub fn assert_cert_error_eq<E: StdError + PartialEq + 'static>(
6262
/// we know the test certificates are valid. This must be updated if the mock certificates
6363
/// are regenerated.
6464
pub(crate) fn verification_time() -> pki_types::UnixTime {
65-
// Wed, 13 August 2025 19:31:53 UTC
66-
pki_types::UnixTime::since_unix_epoch(Duration::from_secs(1_755_113_506))
65+
// Sat, 3 January 2026 14:20:06 UTC
66+
pki_types::UnixTime::since_unix_epoch(Duration::from_secs(1_767_450_006))
6767
}
6868

6969
fn test_provider() -> Arc<CryptoProvider> {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

rustls-platform-verifier/src/tests/verification_real_world/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ const VALID_AWS_AMAZON_COM_CHAIN: &[&[u8]] = &[
6969
fn valid_aws_chain_names() -> Vec<String> {
7070
const VALID_AWS_NAMES: &[&str] = &[
7171
"aws.amazon.com",
72-
"www.aws.amazon.com",
73-
"aws-us-east-1.amazon.com",
7472
"aws-us-west-2.amazon.com",
73+
"www.aws.amazon.com",
74+
"1.aws-lbr.amazonaws.com",
7575
"amazonaws-china.com",
7676
"www.amazonaws-china.com",
77-
"1.aws-lbr.amazonaws.com",
77+
"aws-us-east-1.amazon.com",
7878
];
7979

8080
VALID_AWS_NAMES

0 commit comments

Comments
 (0)