From 505fb9996483b92220a09595030603c0b1752579 Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Fri, 13 Jan 2017 19:06:03 +0000 Subject: [PATCH] Change CA.pl flag from --newprecert to --precert Reviewed-by: Tim Hudson Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/843) --- apps/CA.pl.in | 2 +- test/recipes/80-test_ca.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/CA.pl.in b/apps/CA.pl.in index 940e7d60ab..b9b93cb452 100644 --- a/apps/CA.pl.in +++ b/apps/CA.pl.in @@ -123,7 +123,7 @@ if ($WHAT eq '-newcert' ) { # create a certificate $RET = run("$REQ -new -x509 -keyout $NEWKEY -out $NEWCERT $DAYS $EXTRA{req}"); print "Cert is in $NEWCERT, private key is in $NEWKEY\n" if $RET == 0; -} elsif ($WHAT eq '-newprecert' ) { +} elsif ($WHAT eq '-precert' ) { # create a pre-certificate $RET = run("$REQ -new -x509 -precert -keyout $NEWKEY -out $NEWCERT $DAYS"); print "Pre-cert is in $NEWCERT, private key is in $NEWKEY\n" if $RET == 0; diff --git a/test/recipes/80-test_ca.t b/test/recipes/80-test_ca.t index 4766b8280d..e9ff318ff3 100644 --- a/test/recipes/80-test_ca.t +++ b/test/recipes/80-test_ca.t @@ -43,7 +43,7 @@ plan tests => 5; 'verifying new certificate'); $ENV{OPENSSL_CONFIG} = "-config ".srctop_file("test", "Uss.cnf"); - ok(run(perlapp(["CA.pl", "-newprecert"], stderr => undef)), + ok(run(perlapp(["CA.pl", "-precert"], stderr => undef)), 'creating new pre-certificate'); } -- 2.25.1