$ErrorActionPreference = 'Stop' $Root = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path $Script = 'infra/tls/bootstrap.sh' Write-Host 'Generating local Lab 7 certificates using a temporary pinned Alpine container...' docker run --rm -v "${Root}:/work" -w /work alpine:3.20.3 sh -lc "apk add --no-cache openssl >/dev/null && sh ${Script}" if ($LASTEXITCODE -ne 0) { throw 'TLS bootstrap failed.' } Write-Host 'Certificates are local-only under secrets/. Do not commit this directory.'