getWindowsSandboxCaCert function

({String pem, String thumb})? getWindowsSandboxCaCert({
  1. WindowsSandboxUserStatus? status,
  2. SrtWinSpawn? srtWin,
})

Read back the persistent MITM CA the sandbox was installed with (via srt-win user trust-ca / {@link windowsTrustCa}). Returns null when no CA was installed. The PEM is what srt-win user status reconstructs from the DER recorded in the registry.

On Windows, tlsTerminate requires this CA to be present in the sandbox user's CurrentUser\Root (schannel-level trust is an install-time concern, not per-session); the host calls this from initialize() to fail early with an actionable message when it isn't.

@param status pass an already-fetched {@link getWindowsSandboxUserStatus} result to avoid a second srt-win user status spawn.

Implementation

({String pem, String thumb})? getWindowsSandboxCaCert({
  WindowsSandboxUserStatus? status,
  SrtWinSpawn? srtWin,
}) => throw UnsupportedError('Windows is not supported by this port');