Skip to content

Commit

Permalink
Patch self signed certs (#26)
Browse files Browse the repository at this point in the history
* Fixed the incorrect parameter name

* Added AllowSelfSignedCerts to the saved env variable
  • Loading branch information
marranaga authored Aug 13, 2019
1 parent f83d64b commit 8e591be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ePOwerShell/Private/Initialize-ePOConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions ePOwerShell/Public/Set-ePOConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8e591be

Please sign in to comment.