mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 00:34:43 +00:00
Mount certificate provider in Windows TLS proof
This commit is contained in:
parent
bc265ada2e
commit
ab3e47f484
1 changed files with 3 additions and 0 deletions
|
|
@ -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; ` +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue