From ab3e47f48486ba5c135e862dc9a371391f501cd4 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 1 Aug 2026 14:08:30 +0100 Subject: [PATCH] Mount certificate provider in Windows TLS proof --- .../src/utils/__tests__/agentInstallCommand.windows.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts b/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts index bd0592b7ca..5725c8f5d4 100644 --- a/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts +++ b/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts @@ -61,6 +61,9 @@ describe.runIf(Boolean(powerShellRuntime))('Windows install command TLS runtime' const quote = (value: string) => `'${value.replace(/'/g, "''")}'`; await runPowerShell( `$ErrorActionPreference="Stop"; ` + + `if ($null -eq (Get-PSDrive -Name "Cert" -ErrorAction SilentlyContinue)) { ` + + `New-PSDrive -Name "Cert" -PSProvider "Certificate" -Root "\\" | Out-Null ` + + `}; ` + `$certificate=New-SelfSignedCertificate -DnsName "localhost" -CertStoreLocation "Cert:\\CurrentUser\\My" -KeyExportPolicy Exportable; ` + `try { ` + `$password=ConvertTo-SecureString "pulse-test" -AsPlainText -Force; ` +