Selaa lähdekoodia

added ca cert and key parameters

master
HMSheets 3 vuotta sitten
vanhempi
commit
0650240128
1 muutettua tiedostoa jossa 12 lisäystä ja 2 poistoa
  1. +12
    -2
      update-NebulaNodeCert

+ 12
- 2
update-NebulaNodeCert Näytä tiedosto

@@ -6,7 +6,7 @@ do
key="$1"

case $key in
-c|--nodecertname)
-n|--nodecertname)
NODECERTNAME="$2"
shift # past argument
shift # past value
@@ -16,6 +16,16 @@ case $key in
shift # past argument
shift # past value
;;
-c|--cacertname)
CACERTNAME="$2"
shift # past argument
shift # past value
;;
-k|--cakeyname)
CAKEYNAME="$2"
shift # past argument
shift # past value
;;
*) # unknown option
POSITIONAL+=("$1") # save it in an array for later
shift # past argument
@@ -53,5 +63,5 @@ if [[ $CERTISCASTATUS == false ]]; then
echo "DateTime: ${DATETIME}"
echo "NEWFILENAME: ${NEWFILENAME}"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
${ROOTPATH}/nebula-cert sign -groups ${NODEGROUPS[@]} -ip ${NODEIPS} -name ${NODENAME} -ca-crt ${ROOTPATH}/ca.crt -ca-key ${ROOTPATH}/ca.key -out-crt ${ROOTPATH}/${NEWFILENAME}.crt -out-key ${ROOTPATH}/${NEWFILENAME}.key
${ROOTPATH}/nebula-cert sign -groups ${NODEGROUPS[@]} -ip ${NODEIPS} -name ${NODENAME} -ca-crt ${ROOTPATH}/${CACERTNAME} -ca-key ${ROOTPATH}/${CAKEYNAME} -out-crt ${ROOTPATH}/${NEWFILENAME}.crt -out-key ${ROOTPATH}/${NEWFILENAME}.key
fi

Ladataan…
Peruuta
Tallenna