Ver código fonte

fix ca creation command and file name update

master
HMSheets 3 anos atrás
pai
commit
9f3f082405
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      refresh-NebulaCA

+ 2
- 2
refresh-NebulaCA Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar