projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1b077
)
ovs-pki: Workaround lack of /dev/stdin in Windows.
author
Gurucharan Shetty
<gshetty@nicira.com>
Mon, 12 May 2014 20:08:35 +0000
(13:08 -0700)
committer
Gurucharan Shetty
<gshetty@nicira.com>
Wed, 14 May 2014 23:29:04 +0000
(16:29 -0700)
This lets us generate certs for unit tests on Windows
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
utilities/ovs-pki.in
patch
|
blob
|
history
diff --git
a/utilities/ovs-pki.in
b/utilities/ovs-pki.in
index
89af405
..
6081a5e
100755
(executable)
--- a/
utilities/ovs-pki.in
+++ b/
utilities/ovs-pki.in
@@
-461,9
+461,18
@@
sign_request() {
must_not_exist "$2"
pkidir_must_exist
+ case "$1" in
+ "/"*)
+ request_file="$1"
+ ;;
+ *)
+ request_file="`pwd`/$1"
+ ;;
+ esac
+
(cd "$pkidir/${type}ca" &&
- openssl ca -config ca.cnf -batch -in
/dev/stdin
) \
-
< "$1"
> "$2.tmp$$" 2>&3
+ openssl ca -config ca.cnf -batch -in
"$request_file"
) \
+ > "$2.tmp$$" 2>&3
mv "$2.tmp$$" "$2"
}