Skip to content

Commit

Permalink
Fix: REST-Api invoke command by removing CA certificate check (#773)
Browse files Browse the repository at this point in the history
* Fixes REST-Api invoke command by removing CA certificate check

* Updates changelog
  • Loading branch information
LordHepipud authored Jan 29, 2025
1 parent f5d9ac9 commit 336b38d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/100-General/10-Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
### Bugfixes

* [#759](https://github.com/Icinga/icinga-powershell-framework/pull/759) Fixes maximum cache duration for service daemons to the right value
* [#773](https://github.com/Icinga/icinga-powershell-framework/pull/773) Fixes REST-Api invoke command `Invoke-IcingaForWindowsRESTApi` by removing CA certificate check

### Enhancements

Expand Down
2 changes: 2 additions & 0 deletions lib/webserver/Invoke-IcingaForWindowsRESTApi.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ function Invoke-IcingaForWindowsRESTApi()
[hashtable]$Body = @{ }
);

<# Disable this for now, as there is no way to properly handle this with Windows tool and localhost listener
if ((Test-IcingaCAInstalledToAuthRoot) -eq $FALSE) {
Write-IcingaConsoleError 'The Icinga CA certificate is not installed to the local machine certificate store. Please run the "Start-IcingaWindowsScheduledTaskRenewCertificate" command to fix this issue.';
return $null;
}
#>

Set-IcingaTLSVersion;
Enable-IcingaUntrustedCertificateValidation -SuppressMessages;
Expand Down

0 comments on commit 336b38d

Please sign in to comment.