Ignore output of 'openssl req -verify'.

Newer versions of openssl seem to send the verify outout to stdout instead of
stderr in the past. Ignore that output when retrieving altnames.
This commit is contained in:
Wilfried Teiken
2023-12-03 15:07:01 -05:00
committed by Lukas Schauer
parent e3ef43c816
commit 4fd777e87e

View File

@@ -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