summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/certificates_test.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/certificates_test.cc b/test/certificates_test.cc
index 4795e45e..9040ea1d 100644
--- a/test/certificates_test.cc
+++ b/test/certificates_test.cc
@@ -279,3 +279,24 @@ BOOST_AUTO_TEST_CASE (certificate_not_before_after)
BOOST_CHECK_EQUAL (not_after.month(), 6);
BOOST_CHECK_EQUAL (not_after.year(), 2025);
}
+
+
+BOOST_AUTO_TEST_CASE(debug_it)
+{
+ std::vector<boost::filesystem::path> files = {
+ "1190143602-ICP-04_июл_2022.crt",
+ "1190143602-LD-04_июл_2022.crt.1",
+ "1190143602-LD-04_июл_2022.crt.2",
+ "1190143602-LD-04_июл_2022.crt.3",
+ "1190143602-LD-04_июл_2022.crt.4",
+ "1190143602-LD-04_июл_2022.crt.5",
+ "1190143602-LD-04_июл_2022.crt.6",
+ "1190162017-ICP-04_июл_2022.crt"
+ };
+
+ for (auto file: files) {
+ dcp::Certificate cert(dcp::file_to_string(boost::filesystem::path("/home/carl/bug/2507") / file));
+ std::cout << cert.thumbprint() << "\n";
+ }
+}
+