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); ` +