Icinga / Icinga/icinga-powershell-framework

Invoke-IcingaCheckCertificate shows too much certificates

Open
#595 3 comments 0 reactions 1 assignee View on GitHub

@LordHepipud is already working on this.

Since Dec 2, 2022.

Enhancement
Dominant language
PowerShell
Stars
87
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

Service should show one Certificate

Current Behavior

Service shows the new AND the old Certificate despite the fact, the old one was deleted
Problem is, that the current and the old one shares the same name.
image

I did not find the old certificate in any Cert Store, so I can't figure out where the Agent can still find it.

Possible Solution

Is it maybe possible to exclude Certificates by their expiration date (maybe a feature request for future updates?)

Steps to Reproduce (for bugs)

Context

Since the old certificate seems to be found, the service will remain critical.
We don't want to filter the Certs by Fingerprints, because we have automations to renew the certs

Your Environment

Our Powershell Framework is on version 1.9 right now

  • Operating System and version (Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption):
    image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.