Skip to content

Commit

Permalink
Set Policy for Acceptance Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser26 committed Jan 11, 2024
1 parent e58fc57 commit 660b3ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added .ci/setup/certs/oem_certs.zip
Binary file not shown.
9 changes: 9 additions & 0 deletions scripts/install_hat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ foreach-Object {
curl.exe -k -F "file=@$filename" `
"https://127.0.0.1:8443/HIRS_AttestationCAPortal/portal/certificate-request/trust-chain/upload"
}
# Set ACA Policy to perform EK and Platform Cert validation
$Properties=docker exec aca powershell -command "Get-Content C:\ProgramData\hirs\aca\aca.properties"
$Props=echo $Properties | Out-String | ConvertFrom-StringData
$Prop=$Props.hirs_db_password
docker exec aca mysql -u hirs_db -D hirs_db --password=$Prop -e `
"Update policysettings set ecValidationEnabled=1, pcValidationEnabled=1, `
pcAttributeValidationEnabled=1, utcValidationEnabled=0, firmwareValidationEnabled=0, `
expiredCertificateValidationEnabled=0, ignoreGptEnabled=1, `
ignoreImaEnabled=0, ignoretBootEnabled=0, ignoreOsEvtEnabled=1;"

# Done
Write-Host "HIRS Acceptance Test Installation complete."
Expand Down

0 comments on commit 660b3ad

Please sign in to comment.