Skip to content

SteveUnderScoreN/CertChecks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

About

PowerShell script to check certificate expiry dates and to create event log and email alerts. Invalid/self signed certificate checking is supported.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published