Skip to content

Commit

Permalink
Make sure cert exists before checking ocsp
Browse files Browse the repository at this point in the history
  • Loading branch information
tjikkun committed Jan 31, 2022
1 parent 42d949a commit 311b159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dehydrated
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ command_sign_domains() {
fi
fi

if [[ "${OCSP_FETCH}" = "yes" ]]; then
if [[ "${OCSP_FETCH}" = "yes" && -s ${cert} ]]; then
local ocsp_url
ocsp_url="$(get_ocsp_url "${cert}")"

Expand Down

0 comments on commit 311b159

Please sign in to comment.