mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Merge pull request #1007 from dcooper16/revert_read_sigalg_from_file
Revert change to read_sigalg_from_file()
This commit is contained in:
commit
107d2dd12e
@ -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; }'
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user