Browse Source

Orderlink data is bundle with ca cert, need split

pull/370/head
Sheng-Han Tzeng 8 years ago
parent
commit
65e998a5cf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      getssl

+ 3
- 1
getssl View File

@ -850,7 +850,9 @@ get_certificate() { # get certificate for csr, if all domains validated.
cd=$(curl --silent "$OrderLink")
CertData=$(json_get "$cd" "certificate")
debug "CertData is at $CertData"
curl --silent "$CertData" > "$CERT_FILE"
curl --silent "$CertData" | sed -e '/^$/,$d' > "$gc_certfile"
info "The intermediate CA cert is in $gc_cafile"
curl --silent "$CertData" | sed -e '1,/^$/d' > "$gc_cafile"
info "Certificate saved in $CERT_FILE"
fi
}


Loading…
Cancel
Save