summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/CA.pl.in2
-rw-r--r--test/recipes/80-test_ca.t2
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');
}