Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Use fixed-size RSA provider in Windows TLS proof

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