|
@@ -38,6 +38,9 @@ NODEIPS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-o |
|
|
NODEGROUPS=($(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g' | sed 's/,/ /g')) |
|
|
NODEGROUPS=($(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.groups | sed 's/[]["]//g' | sed 's/,/ /g')) |
|
|
CERTISCASTATUS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.isCa) |
|
|
CERTISCASTATUS=$(${NEBULACERTBINPATH} print -path ${CERTPATH} -json | jq -s --compact-output .[].details.isCa) |
|
|
|
|
|
|
|
|
|
|
|
# Create new file name variable |
|
|
|
|
|
NEWFILENAME="${NODENAME}-DATETIME" |
|
|
|
|
|
|
|
|
if [[ $CERTISCASTATUS == true ]]; then |
|
|
if [[ $CERTISCASTATUS == true ]]; then |
|
|
echo "Certificate is the root CA Certificate. Try again with a node certificate." |
|
|
echo "Certificate is the root CA Certificate. Try again with a node certificate." |
|
|
exit |
|
|
exit |
|
@@ -49,4 +52,5 @@ if [[ $CERTISCASTATUS == false ]]; then |
|
|
echo "Node Groups: ${NODEGROUPS[@]}" |
|
|
echo "Node Groups: ${NODEGROUPS[@]}" |
|
|
echo "Certificate isCa Status: ${CERTISCASTATUS}" |
|
|
echo "Certificate isCa Status: ${CERTISCASTATUS}" |
|
|
echo "DateTime: ${DATETIME}" |
|
|
echo "DateTime: ${DATETIME}" |
|
|
|
|
|
echo "NEWFILENAME: ${NEWFILENAME}" |
|
|
fi |
|
|
fi |