summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-10-07 20:59:18 +0200
committerRich Salz <rsalz@openssl.org>2017-10-07 20:59:18 +0200
commit32cd473392d20b70bf6f1272a873f47a71a9417b (patch)
treed664a7f1704857df46368385faa7d5c065a6feeb
parentRewrite some code (diff)
downloadopenssl-32cd473392d20b70bf6f1272a873f47a71a9417b.tar.xz
openssl-32cd473392d20b70bf6f1272a873f47a71a9417b.zip
Anchor the regexp match
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4483)
-rw-r--r--apps/CA.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/CA.pl.in b/apps/CA.pl.in
index b5c4f59446..6306fa47d5 100644
--- a/apps/CA.pl.in
+++ b/apps/CA.pl.in
@@ -127,7 +127,7 @@ if ($WHAT eq '-newcert' ) {
# create a pre-certificate
$RET = run("$REQ -x509 -precert -keyout $NEWKEY -out $NEWCERT $DAYS");
print "Pre-cert is in $NEWCERT, private key is in $NEWKEY\n" if $RET == 0;
-} elsif ($WHAT =~ /\-newreq(\-nodes)?/ ) {
+} elsif ($WHAT =~ /^\-newreq(\-nodes)?$/ ) {
# create a certificate request
$RET = run("$REQ -new $1 -keyout $NEWKEY -out $NEWREQ $DAYS $EXTRA{req}");
print "Request is in $NEWREQ, private key is in $NEWKEY\n" if $RET == 0;