Skip to content

Commit

Permalink
tests: update vendored real world certs
Browse files Browse the repository at this point in the history
The Agilebits and LE end-entity certs expired, breaking CI runs that
rely on this vendored test data.

The two EE certs (`agilebits_com_valid_1.crt` and
`letsencrypt_org_valid_1.crt`) were refreshed by running
`update_valid_ee_certs.rs`.

Additionally the intermediate used by the Agilebits chain switched from

  Subject: C = US, O = Amazon, CN = Amazon RSA 2048 M01

To:

  Subject: C = US, O = Amazon, CN = Amazon RSA 2048 M03

The `agilebits_com_valid_2.crt` file was updated manually to accommodate
this change.
  • Loading branch information
cpu committed Sep 16, 2024
1 parent 3b98885 commit e81e0f4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustls-platform-verifier/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ pub fn assert_cert_error_eq<E: StdError + PartialEq + 'static>(
/// we know the test certificates are valid. This must be updated if the mock certificates
/// are regenerated.
pub(crate) fn verification_time() -> pki_types::UnixTime {
// Monday, August 5th, 2024 19:50:24 UTC
pki_types::UnixTime::since_unix_epoch(Duration::from_secs(1_722_887_424))
// Monday, September 16th, 2024 19:21:42 UTC
pki_types::UnixTime::since_unix_epoch(Duration::from_secs(1_726_514_502))
}

fn ensure_global_state() {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit e81e0f4

Please sign in to comment.