ovs-pki: Pass correct argument to 'sign' command.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 12 May 2014 20:01:02 +0000 (13:01 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 14 May 2014 21:46:21 +0000 (14:46 -0700)
The first argument passed to 'sign' command is used as prefix
for both req.pem and cert.pem.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-pki.in

index 501b06e..89af405 100755 (executable)
@@ -485,7 +485,7 @@ elif test "$command" = sign; then
     check_type "$arg2"
     verify_fingerprint "$arg1-req.pem"
 
-    sign_request "$arg1-req.pem" "$arg2-cert.pem"
+    sign_request "$arg1-req.pem" "$arg1-cert.pem"
 elif test "$command" = req+sign; then
     one_or_two_args
     check_type "$arg2"