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.

Mount certificate provider in Windows TLS proof

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