diff options
author | Rich Salz <rsalz@openssl.org> | 2017-10-07 14:59:18 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-10-07 14:59:18 -0400 |
commit | 32cd473392d20b70bf6f1272a873f47a71a9417b (patch) | |
tree | d664a7f1704857df46368385faa7d5c065a6feeb /apps | |
parent | fa4dd546c531ba2ec886531aa5adfd480ed2a094 (diff) | |
download | openssl-32cd473392d20b70bf6f1272a873f47a71a9417b.tar.gz |
Anchor the regexp match
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4483)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/CA.pl.in | 2 |
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; |