From d1dd6942798a0ccd5ec7dff408ef63003e437748 Mon Sep 17 00:00:00 2001 From: K1 Date: Fri, 8 Mar 2024 19:37:19 +0800 Subject: [PATCH] Fix test failed, no file out3.p12 --- test/recipes/80-test_pkcs12.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/recipes/80-test_pkcs12.t b/test/recipes/80-test_pkcs12.t index fe8d43fd2..edb223078 100644 --- a/test/recipes/80-test_pkcs12.t +++ b/test/recipes/80-test_pkcs12.t @@ -99,6 +99,19 @@ SKIP: { "test_pkcs12_passcerts"); } +SKIP: { + skip "Skipping legacy PKCS#12 test because the required algorithms are disabled", 1 + if disabled("des") || disabled("rc2") || disabled("legacy"); + # Test reading legacy PKCS#12 file + ok(run(app(["openssl", "pkcs12", "-export", + "-in", srctop_file(@path, "v3-certs-RC2.p12"), + "-passin", "pass:v3-certs", + "-provider", "default", "-provider", "legacy", + "-nokeys", "-passout", "pass:v3-certs", "-descert", + "-out", $outfile3])), + "test_pkcs12_passcerts_legacy"); +} + # Test export of PEM file with both cert and key # -nomac necessary to avoid legacy provider requirement ok(run(app(["openssl", "pkcs12", "-export",