From: Richard Levitte Date: Thu, 28 Feb 2019 10:30:19 +0000 (+0100) Subject: apps/ca.c: only output DER with SPKAC input and when -out is chosen X-Git-Tag: openssl-3.0.0-alpha1~2457 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=69f6b3ceaba493e70e1296880ea6c93e40714f0f apps/ca.c: only output DER with SPKAC input and when -out is chosen So say the docs Fixes #8055 Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8368) --- diff --git a/apps/ca.c b/apps/ca.c index b4ac86d4aa..4464b2ba86 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -722,7 +722,7 @@ end_of_options: /*****************************************************************/ if (req || gencrl) { - if (spkac_file != NULL) { + if (spkac_file != NULL && outfile != NULL) { output_der = 1; batch = 1; }