提交 89a99cd5 编写于 作者: R Rich Salz

Warn if -days without -x509

Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4692)
上级 1c47d35a
......@@ -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;
......
......@@ -247,7 +247,8 @@ to the self signed certificate otherwise new request is created.
=item B<-days n>
When the B<-x509> option is being used this specifies the number of
days to certify the certificate for. The default is 30 days.
days to certify the certificate for, otherwise it is ignored.
The default is 30 days.
=item B<-set_serial n>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册