Skip to content

Commit

Permalink
Updated test certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed Nov 21, 2024
1 parent dd370f3 commit b7cd0ab
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified tests/assets/rustls-client.pfx
Binary file not shown.
Binary file modified tests/assets/rustls-ec.p12
Binary file not shown.
Binary file modified tests/assets/rustls-server.pfx
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/test_find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ fn test_find_by_hash() {
let store = CertStore::from_pkcs12(PFX, PASSWORD).expect("Cannot open cert store");

let sha1 = [
0xfe, 0x0e, 0x21, 0x9b, 0x62, 0xf8, 0xf7, 0x8a, 0x93, 0xa3, 0x05, 0xa3, 0xaf, 0xed, 0x80,
0x23, 0x0d, 0xce, 0xab, 0x61,
0x66, 0xBF, 0xFD, 0xE5, 0xD2, 0x9D, 0x57, 0x97, 0x1B, 0x17, 0xBB, 0x81, 0x5D, 0x7A, 0xF8,
0x6D, 0x61, 0x91, 0xA8, 0xA7,
];
let context = store.find_by_sha1(sha1).unwrap().into_iter().next();
assert!(context.is_some());
Expand Down

0 comments on commit b7cd0ab

Please sign in to comment.