proxy/scripts/install-root-ca-windows.ps1
2026-06-30 23:00:35 +08:00

10 lines
373 B
PowerShell

param()
$ErrorActionPreference = 'Stop'
$certPath = Join-Path $PSScriptRoot '..\certs\rootCA.cert.cer'
$resolved = Resolve-Path $certPath
Write-Host "Installing root CA into CurrentUser\Root: $resolved"
Import-Certificate -FilePath $resolved -CertStoreLocation Cert:\CurrentUser\Root | Out-Null
Write-Host 'Installed. Restart browsers/apps that cache trust settings.'