HCoop
/
hcoop
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39aa6e0
)
ca-install: use openssl instead of grepping for private key
author
Clinton Ebadi
<clinton@unknownlamer.org>
Sat, 27 Dec 2014 23:39:37 +0000
(18:39 -0500)
committer
Clinton Ebadi
<clinton@unknownlamer.org>
Sat, 27 Dec 2014 23:39:37 +0000
(18:39 -0500)
The check was never reliable, do it the Right Way (tm) instead.
ca-install
patch
|
blob
|
blame
|
history
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
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
KEY=
else
if test -z "$KEY"; then