aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorRenĂ© Meusel <[email protected]>2021-07-12 15:33:04 +0200
committerRenĂ© Meusel <[email protected]>2021-07-12 15:40:37 +0200
commit6a6b0feaab2726c72263aab27506b7916041bc52 (patch)
tree05b6b91e74c9976d8e2e346677551542b7128b5d /src/tests
parenta24bfec214d589c09910d8511bedf5c4ac58b285 (diff)
FIX: try again with 'SecureTrust CA' certificate (D-Trust cert wasn't available on AppVeyor)
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_certstor_system.cpp2
-rw-r--r--src/tests/test_certstor_utils.cpp9
2 files changed, 5 insertions, 6 deletions
diff --git a/src/tests/test_certstor_system.cpp b/src/tests/test_certstor_system.cpp
index 733b9ff7e..29ef7bf06 100644
--- a/src/tests/test_certstor_system.cpp
+++ b/src/tests/test_certstor_system.cpp
@@ -63,7 +63,7 @@ Test::Result find_certificate_by_pubkey_sha1_with_unmatching_key_id(Botan::Certi
{
auto cns = cert->subject_dn().get_attribute("CN");
result.test_is_eq("exactly one CN", cns.size(), size_t(1));
- result.test_eq("CN", cns.front(), "D-TRUST Root Class 3 CA 2 2009");
+ result.test_eq("CN", cns.front(), "SecureTrust CA");
}
}
catch(std::exception& e)
diff --git a/src/tests/test_certstor_utils.cpp b/src/tests/test_certstor_utils.cpp
index 8e5aa6a46..540079126 100644
--- a/src/tests/test_certstor_utils.cpp
+++ b/src/tests/test_certstor_utils.cpp
@@ -52,13 +52,12 @@ std::vector<uint8_t> get_key_id()
std::vector<uint8_t> get_pubkey_sha1_of_cert_with_different_key_id()
{
- // this is _not_ the same as the public key SHA1
// see https://github.com/randombit/botan/issues/2779 for details
//
- // SHA-1(Public Key) of: D-TRUST Root Class 3 CA 2 2009
- // Valid Until: Nov 5 08:35:58 2029 GMT
- // Subject Key Identifier: fdda14c49f30de21bd1e4239fcab632349e0f184
- return Botan::hex_decode("a737b46280e401211faff74eeccd1c05eb8947ce");
+ // SHA-1(Public Key) of: SecureTrust CA
+ // Valid Until: Dec 31 19:40:55 2029 GMT
+ // Subject Key Identifier: 4232b616fa04fdfe5d4b7ac3fdf74c401d5a43af
+ return Botan::hex_decode("ca4edd5b273529d9f6eec3e553efa4c019961daf");
}
Botan::X509_DN get_unknown_dn()