diff options
Diffstat (limited to 'apps/genpkey.c')
-rw-r--r-- | apps/genpkey.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/genpkey.c b/apps/genpkey.c index e2e9c5635c..453dd500c0 100644 --- a/apps/genpkey.c +++ b/apps/genpkey.c @@ -255,7 +255,9 @@ int MAIN(int argc, char **argv) } } - if (outformat == FORMAT_PEM) + if (do_param) + PEM_write_bio_Parameters(out, pkey); + else if (outformat == FORMAT_PEM) PEM_write_bio_PrivateKey(out, pkey, cipher, NULL, 0, NULL, pass); else if (outformat == FORMAT_ASN1) |