lots of changes in code for ssl client

This commit is contained in:
tdv
2025-10-13 20:01:16 +03:00
parent 78b7d495d4
commit 9055a55ad3
9 changed files with 322 additions and 284 deletions

View File

@@ -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}')