fixed injector certificate digest uppercase
This commit is contained in:
parent
156853dc7e
commit
c848011d97
@ -71,7 +71,7 @@ echo
|
|||||||
openssl s_client -connect "$server" </dev/null \
|
openssl s_client -connect "$server" </dev/null \
|
||||||
| sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > "$server_crt"
|
| sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > "$server_crt"
|
||||||
openssl x509 -in "$server_crt" -noout
|
openssl x509 -in "$server_crt" -noout
|
||||||
crt_hash=$(openssl dgst -sha3-512 < "$server_crt" | awk '{ print $2}')
|
crt_hash=$(openssl dgst -sha3-512 < "$server_crt" | awk '{ print toupper($2)}')
|
||||||
|
|
||||||
echo_blue "The certificate hash is $crt_hash"
|
echo_blue "The certificate hash is $crt_hash"
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ cat "${server_report}.base64" | basenc --base64url -d > "$server_report"
|
|||||||
rm "${server_report}.base64"
|
rm "${server_report}.base64"
|
||||||
|
|
||||||
report_crt_hash=$( snpguest display report "$server_report" \
|
report_crt_hash=$( snpguest display report "$server_report" \
|
||||||
| grep "Report Data" -A 4 | tail -4 | tr '\n' ' ' | sed 's/\s//g')
|
| grep "Report Data" -A 4 | tail -4 | tr '\n' ' ' | sed 's/\s//g' | tr '[:lower:]' '[:upper:]')
|
||||||
|
|
||||||
echo_blue "The hash in the report is $report_crt_hash"
|
echo_blue "The hash in the report is $report_crt_hash"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user