提交 505fb999 编写于 作者: R Rob Percival 提交者: Rich Salz

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

Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/843)
上级 7bb89f09
......@@ -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;
......
......@@ -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');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册