diff --git a/dyntls.sh b/dyntls.sh index 215cbb3..a409c6d 100644 --- a/dyntls.sh +++ b/dyntls.sh @@ -1094,11 +1094,13 @@ _create_cert() { else _log "Staging mode: certificate issued but not installed." 2 rm -f "$out_file_tmp" + rm -f "$DYNTLS_TMP/$DYNTLS_MEMBER_HOSTNAME.cert.pem_chain" export DYNTLS_RELOAD_WEBSERVER="false" fi else - _log "Issued certificate does not satisfy validity window; removing temporary file." 4 + _log "Issued certificate does not satisfy validity window; removing temporary file(s)." 4 rm -f "$out_file_tmp" + rm -f "$DYNTLS_TMP/$DYNTLS_MEMBER_HOSTNAME.cert.pem_chain" fi fi