HP Sure Recover User Guide

Write-Host 'Deprovisioning Sure Recover'
Start-Sleep -Seconds 3
$p = New-HPSureRecoverDeprovisionPayload `
-SigningKeyPassword $skpw `
-SigningKeyFile "$path\sk.pfx"
$p | Set-HPSecurePlatformPayload
Start-Sleep -Seconds 3
Write-host 'Deprovisioning P21'
$p = New-HPSecurePlatformDeprovisioningPayload `
-verbose `
-EndorsementKeyPassword $pw `
-EndorsementKeyFile "$Path\kek.pfx"
$p | Set-HPSecurePlatformPayload
Write-Host 'Final secure platform state:'
Get-HPSecurePlatformState
}
Exemplu de generare a cheilor utilizând OpenSSL
Păstraţi cheile private într-un loc sigur. Cheile publice vor fi utilizate pentru validare şi trebuie introduse în
timpul asigurării accesului. Aceste chei trebuieaibă lungimea de 2048 biţi şiutilizeze un exponent
0x10001. Înlocuiţi subiectul din exemple cu informaţii despre organizaţie.
Înainte de a continua, setaţi următoarea variabilă de mediu:
set OPENSSL_CONF=<path>\openssl.cnf
# Create a self-signed root CA certificate for testing
openssl req -sha256 -nodes -x509 -newkey rsa:2048 -keyout ca.key -out
ca.crt -subj
"/C=US/ST=State/L=City/O=Company/OU=Org/CN=www.example.com“
# Create a key endorsement certificate
openssl req -sha256 -nodes -newkey rsa:2048 -keyout kek.key -out kek.csr -
subj
"/C=US/ST=State/L=City/O=Company/OU=Org/CN=www.example.com“
14 Capitolul 4 Lucrul cu Biblioteca de scripturi HP Client Management (CMSL)