diff --git a/getssl b/getssl index 9d49421..9d81f75 100755 --- a/getssl +++ b/getssl @@ -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 }