Support for LibreSSL version of openssl on macOS

This commit is contained in:
Nathan Felton
2021-01-05 14:34:16 -05:00
committed by Lukas Schauer
parent dd0bbd2405
commit 33a421f1e4

View File

@@ -1060,7 +1060,7 @@ sign_csr() {
keyauth_hook="$(printf '%s' "${keyauth}" | "${OPENSSL}" dgst -sha256 -binary | urlbase64)"
;;
"tls-alpn-01")
keyauth_hook="$(printf '%s' "${keyauth}" | "${OPENSSL}" dgst -sha256 -c -hex | awk '{print $2}')"
keyauth_hook="$(printf '%s' "${keyauth}" | "${OPENSSL}" dgst -sha256 -c -hex | awk '{print $NF}')"
generate_alpn_certificate "${identifier}" "${keyauth_hook}"
;;
esac