mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
5 lines
339 B
PowerShell
5 lines
339 B
PowerShell
$fileLocale = $PSScriptRoot + "\client.p12"
|
|
$Pass = ConvertTo-SecureString -String 's3cr3t' -Force -AsPlainText
|
|
$User = "whatever"
|
|
$Cred = New-Object -TypeName "System.Management.Automation.PSCredential" -ArgumentList $User, $Pass
|
|
Import-PfxCertificate -FilePath $filelocale -CertStoreLocation Cert:\CurrentUser\My -Password $Cred.Password |