瀏覽代碼

fix ca creation command and file name update

master
HMSheets 3 年之前
父節點
當前提交
9f3f082405
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      refresh-NebulaCA

+ 2
- 2
refresh-NebulaCA 查看文件

@@ -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…
取消
儲存