From 8e591be4e63d71407d01b0725d1dfab4195af5e3 Mon Sep 17 00:00:00 2001 From: Michael Arranaga Date: Tue, 13 Aug 2019 13:28:47 -0500 Subject: [PATCH] Patch self signed certs (#26) * Fixed the incorrect parameter name * Added AllowSelfSignedCerts to the saved env variable --- ePOwerShell/Private/Initialize-ePOConfig.ps1 | 8 ++++---- ePOwerShell/Public/Set-ePOConfig.ps1 | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ePOwerShell/Private/Initialize-ePOConfig.ps1 b/ePOwerShell/Private/Initialize-ePOConfig.ps1 index b4a3e88..8c0e1b0 100644 --- a/ePOwerShell/Private/Initialize-ePOConfig.ps1 +++ b/ePOwerShell/Private/Initialize-ePOConfig.ps1 @@ -51,10 +51,10 @@ function Initialize-ePOConfig { } $Script:ePOwerShell = @{ - Port = $Port - Server = $Server - Credentials = $Credentials - AllowSelfSigned = $AllowSelfSignedCerts + Port = $Port + Server = $Server + Credentials = $Credentials + AllowSelfSignedCerts = $AllowSelfSignedCerts } try { diff --git a/ePOwerShell/Public/Set-ePOConfig.ps1 b/ePOwerShell/Public/Set-ePOConfig.ps1 index 019e4ba..cfb04c2 100644 --- a/ePOwerShell/Public/Set-ePOConfig.ps1 +++ b/ePOwerShell/Public/Set-ePOConfig.ps1 @@ -99,8 +99,9 @@ function Set-ePOConfig { $Credentials = New-Object @GetCredentials $ePOwerShellVariables = @{ - Server = $Settings.Server - Credentials = $Credentials + Server = $Settings.Server + Credentials = $Credentials + AllowSelfSignedCerts = $Settings.AllowSelfSignedCerts.IsPresent } if ($settings.Port) {