https://github.com/steveunderscoren/certchecks
PowerShell script to check certificate expiry dates and to create event log and email alerts. Invalid/self signed certificate checking is supported.
https://github.com/steveunderscoren/certchecks
alerting certificates expiration invalid
Last synced: 11 months ago
JSON representation
PowerShell script to check certificate expiry dates and to create event log and email alerts. Invalid/self signed certificate checking is supported.
- Host: GitHub
- URL: https://github.com/steveunderscoren/certchecks
- Owner: SteveUnderScoreN
- Created: 2020-11-01T12:37:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-14T12:57:56.000Z (over 4 years ago)
- Last Synced: 2025-06-10T10:08:18.592Z (about 1 year ago)
- Topics: alerting, certificates, expiration, invalid
- Language: PowerShell
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CertChecks
PowerShell script to check certificate expiry dates and to create event log and email alerts. I've added ServerCertificateValidationCallback code to allow expired certificates that would normally throw an exception calling "AuthenticateAsClient" and give the detail of "The remote certificate is invalid according to the validation procedure."
## Test-CertificateExpiryDate.ps1
This script can test multiple hosts and multiple ports, it can email alerts and create Windows event log entries for SIEM integration. It should be run under 'SYSTEM' as a scheduled task after initial testing at a PowerShell prompt. It supports tab completion using parameters.
e.g.
Test-CertificateExpiryDate.ps1 -Name "outlook.office365.com" -ExpiryThreshold 72 -AlertToAddress "support@mydomain.com" -port 443, 993