diff options
Diffstat (limited to 'test/recipes/25-test_req.t')
-rw-r--r-- | test/recipes/25-test_req.t | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/recipes/25-test_req.t b/test/recipes/25-test_req.t index 872ed316fc..a0f1efdab1 100644 --- a/test/recipes/25-test_req.t +++ b/test/recipes/25-test_req.t @@ -15,7 +15,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_req"); -plan tests => 109; +plan tests => 110; require_ok(srctop_file('test', 'recipes', 'tconversion.pl')); @@ -36,7 +36,7 @@ if (disabled("rsa")) { $ENV{MSYS2_ARG_CONV_EXCL} = "/CN="; # Check for duplicate -addext parameters, and one "working" case. -my @addext_args = ( "openssl", "req", "-new", "-out", "testreq.pem", +my @addext_args = ( "openssl", "req", "-new", "-out", "testreq-addexts.pem", "-key", srctop_file(@certs, "ee-key.pem"), "-config", srctop_file("test", "test.cnf"), @req_new ); my $val = "subjectAltName=DNS:example.com"; @@ -55,6 +55,9 @@ ok(!run(app([@addext_args, "-addext", $val2, "-addext", $val3]))); ok(run(app([@addext_args, "-addext", "SXNetID=1:one, 2:two, 3:three"]))); ok(run(app([@addext_args, "-addext", "subjectAltName=dirName:dirname_sec"]))); +ok(run(app([@addext_args, "-addext", "keyUsage=digitalSignature", + "-reqexts", "reqexts"]))); # referring to section in test.cnf + # If a CSR is provided with neither of -key or -CA/-CAkey, this should fail. ok(!run(app(["openssl", "req", "-x509", "-in", srctop_file(@certs, "x509-check.csr"), |