mirror of
https://github.com/hanzoai/pubsub.git
synced 2026-10-30 15:06:26 +00:00
Replaces #4384. Co-authored-by: Daniel Modler <[email protected]> Co-authored-by: Neil Twigg <[email protected]> Signed-off-by: Neil Twigg <[email protected]>
8 lines
429 B
PowerShell
8 lines
429 B
PowerShell
$file=$args[0]
|
|
if (!$file) { $file="server.p12 "}
|
|
$fileLocale = $PSScriptRoot + "\" + $file
|
|
echo "Installing certificate $fileLocale"
|
|
$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 |