Fix: REST-Api invoke command by removing CA certificate check (#773)

* Fixes REST-Api invoke command by removing CA certificate check

* Updates changelog
This commit is contained in:
Lord Hepipud 2025-01-29 15:10:35 +01:00 committed by GitHub
parent f5d9ac943c
commit 336b38dddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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;