summaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-11-07 07:04:21 -0500
committerRich Salz <rsalz@openssl.org>2017-11-07 07:30:31 -0500
commit89a99cd589d69d3861afa8865986e2d98afb979a (patch)
tree11935a91bc0c7e2e80666c3ddbef97a7841202e0 /apps/req.c
parent1c47d35a0380783b62004a7cb8058d34e082f8d5 (diff)
Warn if -days without -x509
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4692)
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c
index dab67a0534..79425e5939 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -333,6 +333,8 @@ int req_main(int argc, char **argv)
if (argc != 0)
goto opthelp;
+ if (days && !x509)
+ BIO_printf(bio_err, "Ignoring -days; not generating a certificate");
if (x509 && infile == NULL)
newreq = 1;