HCoop
/
hcoop
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ca-install: use openssl instead of grepping for private key
[hcoop/scripts.git]
/
ca-install
diff --git
a/ca-install
b/ca-install
index
3eb2d5c
..
c008d2b
100755
(executable)
--- a/
ca-install
+++ b/
ca-install
@@
-102,7
+102,7
@@
fi
echo
# Determine whether we need to concatenate a private key
-if
grep "^-----BEGIN PRIVATE KEY-----"
"$CERT" > /dev/null; then
+if
openssl rsa -noout -check -in
"$CERT" > /dev/null; then
KEY=
else
if test -z "$KEY"; then