diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-08-04 11:36:24 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-08-05 12:49:43 +0200 |
commit | 204323446e11d7062dc193e5e3986295925bd7b7 (patch) | |
tree | 677372a525101aa4d9d6d961159fda050ce4278b /test | |
parent | 3d4ca443b4778e3230ff23f17625f58f815a9142 (diff) | |
download | openssl-204323446e11d7062dc193e5e3986295925bd7b7.tar.gz |
req: Avoid segfault when -modulus is used
Fixes #16196
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/16215)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/25-test_req.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/recipes/25-test_req.t b/test/recipes/25-test_req.t index 084d70bca5..a405810ae2 100644 --- a/test/recipes/25-test_req.t +++ b/test/recipes/25-test_req.t @@ -78,7 +78,7 @@ subtest "generating alt certificate requests with RSA" => sub { subtest "generating certificate requests with RSA" => sub { - plan tests => 7; + plan tests => 8; SKIP: { skip "RSA is not supported by this OpenSSL build", 2 @@ -105,6 +105,11 @@ subtest "generating certificate requests with RSA" => sub { ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"), + "-modulus", "-in", "testreq-rsa.pem", "-noout"])), + "Printing a modulus of the request key"); + + ok(run(app(["openssl", "req", + "-config", srctop_file("test", "test.cnf"), "-new", "-out", "testreq_withattrs_pem.pem", "-utf8", "-key", srctop_file("test", "testrsa_withattrs.pem")])), "Generating request from a key with extra attributes - PEM"); |