TEST: Add testing of PVK and MSBLOB files to test_store

The PVK and MSBLOB files were generated using openssl 1.1.1, using
test/testrsa.pem as source:

    openssl rsa -in test/testrsa.pem \
                -out test/recipes/90-test_store_data/testrsa.msb \
                -outform msb
    openssl rsa -in test/testrsa.pem \
                -out test/recipes/90-test_store_data/testrsa.pvk \
                -outform pvk \
                -passout pass:password

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15980)
master
Richard Levitte 2 years ago
parent 3c0d0eca35
commit a9fa32c2a0

@ -30,6 +30,11 @@ my @src_files =
"test/testrsapub.pem",
"test/testcrl.pem",
"apps/server.pem" );
my @data_files =
( "testrsa.msb" );
push(@data_files,
( "testrsa.pvk" ))
unless disabled("legacy") || disabled("rc4");
my @src_rsa_files =
( "test/testrsa.pem",
"test/testrsapub.pem" );
@ -104,6 +109,7 @@ push @methods, [qw(-engine loader_attic)]
my $n = scalar @methods
* ( (3 * scalar @noexist_files)
+ (6 * scalar @src_files)
+ (2 * scalar @data_files)
+ (4 * scalar @generated_files)
+ (scalar keys %generated_file_files)
+ (scalar @noexist_file_files)
@ -192,11 +198,19 @@ indir "store_$$" => sub {
to_abs_file_uri($file, 0, "dummy")])));
}
}
foreach (@data_files) {
my $file = data_file($_);
ok(run(app([@storeutl, "-noout", "-passin", "pass:password",
$file])));
ok(run(app([@storeutl, "-noout", "-passin", "pass:password",
to_abs_file($file)])));
}
foreach (@generated_files) {
ok(run(app([@storeutl, "-noout", "-passin",
"pass:password", $_])));
ok(run(app([@storeutl, "-noout", "-passin",
"pass:password", to_abs_file($_)])));
ok(run(app([@storeutl, "-noout", "-passin", "pass:password",
$_])));
ok(run(app([@storeutl, "-noout", "-passin", "pass:password",
to_abs_file($_)])));
SKIP:
{

Loading…
Cancel
Save