Skip to content

Commit

Permalink
Fix test failed, no file out3.p12
Browse files Browse the repository at this point in the history
  • Loading branch information
dongbeiouba committed Mar 8, 2024
1 parent dc7ce08 commit d1dd694
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/recipes/80-test_pkcs12.t
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d1dd694

Please sign in to comment.