HP Sure Recover User Manual

Get-HPSecurePlatformState
}
finally {
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
}
使用 OpenSSL 產生金鑰的範例
將私人金鑰儲存在安全的位置。公用金鑰將用於驗證,且必須在佈建期間提供。這些金鑰的長度需為
2048 位元,並且使用 0x10001 的指數。請用您組織的相關資訊取代範例中的對象。
請先設定下列環境變數然後再繼續:
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
使用
OpenSSL 產生金鑰的範例
13