security update

This commit is contained in:
bergware
2025-02-01 18:31:53 +01:00
parent 1e29ccbdaa
commit f669191c4f

View File

@@ -43,8 +43,8 @@ unzero6(){
# function to initialize openSSL variables
ssl_init(){
KEY="$(dmidecode -qt1 | grep -Pom1 'Manufacturer: \K.+')ABCDEFGH"
IV="$(dmidecode -qt1 | grep -Pom1 'Product Name: \K.+')1234567890123456"
KEY="$(dmidecode -qt1 | grep -Pom1 'Manufacturer: \K.+' | sed 's/ /_/g')ABCDEFGH"
IV="$(dmidecode -qt1 | grep -Pom1 'Product Name: \K.+' | sed 's/ /_/g')1234567890123456"
echo "cipher=aes-256-cbc" >$SSLINPUT
echo "key=${KEY:0:63}" >>$SSLINPUT
echo "iv=${IV:0:16}" >>$SSLINPUT