Browse Source

fix ca creation command and file name update

master
HMSheets 3 years ago
parent
commit
9f3f082405
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      refresh-NebulaCA

+ 2
- 2
refresh-NebulaCA View File

@@ -107,7 +107,7 @@ DATETIME=$(date '+%Y%m%d-%H%M%S')
CERTISCASTATUS=$(${ROOTPATH}/nebula-cert print -path ${ROOTPATH}/${CAFILENAME} -json | jq -s --compact-output .[].details.isCa)

# Create new file name variable
NEWFILENAME="${CANAME}_${DATETIME}"
NEWFILENAME="${CANAME}-CA_${DATETIME}"

if [[ $CERTISCASTATUS == false ]]; then
echo "Certificate is a Node Certificate. Try again by providing the CA Certificate."
@@ -125,7 +125,7 @@ if [[ $CERTISCASTATUS == true ]]; then
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
try
(
${ROOTPATH}/nebula-cert sign -name ${CANAME} -out-crt ${ROOTPATH}/${NEWFILENAME}.crt -out-key ${ROOTPATH}/${NEWFILENAME}.key
${ROOTPATH}/nebula-cert ca -name ${CANAME} -out-crt ${ROOTPATH}/${NEWFILENAME}.crt -out-key ${ROOTPATH}/${NEWFILENAME}.key
)
catch || {
help_msg


Loading…
Cancel
Save