Merge pull request #1007 from dcooper16/revert_read_sigalg_from_file

Revert change to read_sigalg_from_file()
This commit is contained in:
Dirk Wetter 2018-03-12 21:38:44 +01:00 committed by GitHub
commit 107d2dd12e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5066,10 +5066,7 @@ read_dhtype_from_file() {
# arg1: certificate file
read_sigalg_from_file() {
local hostcert_txt="${1//pem/txt}"
[[ -r "$hostcert_txt" ]] || $OPENSSL x509 -noout -text -in "$1" 2>/dev/null >$hostcert_txt
awk -F':' '/Signature Algorithm/ { print $2; exit; }' $hostcert_txt
$OPENSSL x509 -noout -text -in "$1" 2>/dev/null | awk -F':' '/Signature Algorithm/ { print $2; exit; }'
}