]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Ignore output of 'openssl req -verify'.
authorWilfried Teiken <wteiken@teiken.org>
Sun, 3 Dec 2023 20:07:01 +0000 (15:07 -0500)
committerLukas Schauer <lukas@schauer.dev>
Tue, 5 Dec 2023 01:36:40 +0000 (02:36 +0100)
Newer versions of openssl seem to send the verify outout to stdout instead of
stderr in the past. Ignore that output when retrieving altnames.

dehydrated

index a2bff40846c8938fb3ef70b9f9e6871d69ec2a76..a15fb048fc4d10910629f06b787b6f5a7aa78d74 100755 (executable)
@@ -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