From d26967b211b9e339e0c6a6558af3dded0af2e9f7 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 1 Aug 2026 19:00:17 +0100 Subject: [PATCH] Use fixed-size RSA provider in Windows TLS proof --- .../src/utils/__tests__/agentInstallCommand.windows.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts b/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts index 4035e63e27..df1dddb559 100644 --- a/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts +++ b/frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts @@ -61,9 +61,8 @@ describe.runIf(Boolean(powerShellRuntime))('Windows install command TLS runtime' const quote = (value: string) => `'${value.replace(/'/g, "''")}'`; await runPowerShell( `$ErrorActionPreference="Stop"; ` + - `$rsa=[System.Security.Cryptography.RSA]::Create(); ` + + `$rsa=[System.Security.Cryptography.RSACryptoServiceProvider]::new(2048); ` + `try { ` + - `$rsa.KeySize=2048; ` + `$request=[System.Security.Cryptography.X509Certificates.CertificateRequest]::new(` + `"CN=localhost", $rsa, [System.Security.Cryptography.HashAlgorithmName]::SHA256, ` + `[System.Security.Cryptography.RSASignaturePadding]::Pkcs1); ` +