lots of changes in code for ssl client
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
set -e
|
||||
|
||||
CPU_SERIAL=$(awk '/Serial/ {print $3}' /proc/cpuinfo)
|
||||
|
||||
# Fallback if CPU_SERIAL is empty
|
||||
if [[ -z "$CPU_SERIAL" ]]; then
|
||||
CPU_SERIAL="999999999999"
|
||||
fi
|
||||
|
||||
KEK=$(echo -n "$CPU_SERIAL" | \
|
||||
openssl dgst -sha256 -hmac "server-provided-salt" | \
|
||||
awk '{print $2}')
|
||||
|
||||
Reference in New Issue
Block a user