Skip to content

Commit 0aa1d57

Browse files
committed
Fix Agent certificate fetching for REST-Api
1 parent 348fa77 commit 0aa1d57

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/31-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
4141
* [#143](https://github.com/Icinga/icinga-powershell-framework/issues/143) Fixes the annoying hint from the analyzer to check space before open brace
4242
* [#152](https://github.com/Icinga/icinga-powershell-framework/issues/152) Fixes incorrect rendering for empty arrays which used `$null` incorrectly instead of `@()` and fixed ValidateSet which now also supports arrays as data type
4343
* [#159](https://github.com/Icinga/icinga-powershell-framework/pull/159) Fixes crash during update of the Icinga Framework, caused by the newly introduced experimental feature for code caching
44+
* [#165](https://github.com/Icinga/icinga-powershell-framework/pull/165) Fixes fetching for Icinga Agent certificate for REST-Api daemon on upper/lower case hostname mismatch
4445

4546
## 1.2.0 (2020-08-28)
4647

lib/core/icingaagent/getters/Get-IcingaAgentHostCertificate.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Get-IcingaAgentHostCertificate()
77
$CertPath = $null;
88

99
foreach ($certFile in $FolderContent) {
10-
if ($certFile.Name.Contains($Hostname)) {
10+
if ($certFile.Name -like ([string]::Format('{0}.crt', $Hostname))) {
1111
$CertPath = $certFile.FullName;
1212
break;
1313
}

0 commit comments

Comments
 (0)