windowsTrustCa function
Install (or replace) the MITM CA in the sandbox user's
CurrentUser\Root and record it in the registry (so
{@link getWindowsSandboxCaCert} surfaces its thumbprint + PEM).
Thin wrapper around srt-win user trust-ca <path>. Does NOT
require elevation. Persistent until {@link uninstallWindowsSandbox}
deletes the sandbox user's profile.
The CA has a separate lifecycle from {@link installWindowsSandbox}
— install provisions the account/filters and never touches the CA;
call this AFTER install when tlsTerminate will be used.
@throws when the sandbox user is not provisioned, the file is not a parseable X.509 certificate, or the registry write into the sandbox user's hive fails.
Implementation
void windowsTrustCa(String caCertPath, {SrtWinSpawn? srtWin}) {
// 60s: first call may create the sandbox user's profile
// (LOGON_WITH_PROFILE) via the one-shot CreateProcessWithLogonW.
throw UnsupportedError('Windows is not supported by this port');
}