Change CA.pl flag from --newprecert to --precert

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/843)
This commit is contained in:
Rob Percival 2017-01-13 19:06:03 +00:00 committed by Rich Salz
parent 7bb89f094d
commit 505fb99964
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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');
}