OPT_SECTION("Output"),
{"outform", OPT_OUTFORM, 'F', "Output format (DER or PEM)"},
- {"passout", OPT_PASSOUT, 's', "Output file pass phrase source"},
+ {"passout", OPT_PASSOUT, 's', "Output PEM file pass phrase source"},
{"out", OPT_OUT, '>', "Output file"},
{"pubout", OPT_PUBOUT, '-', "Output public key, not private"},
{"text_pub", OPT_TEXT_PUB, '-', "Only output public key components"},
if (text && !pubtext)
private = 1;
+ if (outformat == FORMAT_ASN1 && passoutarg != NULL) {
+ BIO_printf(bio_err, "The -passout option is not supported for DER output\n");
+ goto end;
+ }
+
if (!app_passwd(passinarg, passoutarg, &passin, &passout)) {
BIO_printf(bio_err, "Error getting passwords\n");
goto end;
=item B<-passin> I<arg>, B<-passout> I<arg>
The password source for the input and output file.
+The -passout option is not supported for DER output.
+
For more information about the format of B<arg>
see L<openssl-passphrase-options(1)>.