projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make 'openssl req -x509' more equivalent to 'openssl req -new'
[openssl.git]
/
apps
/
req.c
diff --git
a/apps/req.c
b/apps/req.c
index bd18708e3a4e1ab6e3646a109874c57c4820dbd9..26661245464c6ca9bea16d233091d270e6f1549b 100644
(file)
--- a/
apps/req.c
+++ b/
apps/req.c
@@
-289,6
+289,7
@@
int req_main(int argc, char **argv)
break;
case OPT_X509:
x509 = 1;
+ newreq = 1;
break;
case OPT_DAYS:
days = atoi(opt_arg());
@@
-578,7
+579,7
@@
int req_main(int argc, char **argv)
}
}
- if (newreq
|| x509
) {
+ if (newreq) {
if (pkey == NULL) {
BIO_printf(bio_err, "you need to specify a private key\n");
goto end;