Skip to content

Commit

Permalink
Ignore output of 'openssl req -verify'.
Browse files Browse the repository at this point in the history
Newer versions of openssl seem to send the verify outout to stdout instead of
stderr in the past. Ignore that output when retrieving altnames.
  • Loading branch information
wteiken authored and lukas2511 committed Dec 5, 2023
1 parent e3ef43c commit 4fd777e
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 @@ -1011,7 +1011,7 @@ signed_request() {
extract_altnames() {
csr="${1}" # the CSR itself (not a file)

if ! <<<"${csr}" "${OPENSSL}" req -verify -noout 2>/dev/null; then
if ! <<<"${csr}" "${OPENSSL}" req -verify -noout >/dev/null 2>&1; then
_exiterr "Certificate signing request isn't valid"
fi

Expand Down

0 comments on commit 4fd777e

Please sign in to comment.