SkillAgentSearch skills...

CertExpirationCheck

A simple xUnit C# test showing how to verify a certificate for a domain has at least 30 days before it expires.

Install / Use

/learn @ardalis/CertExpirationCheck
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Certificate Expiration Check

A simple xUnit C# test showing how to verify a certificate for a domain has at least 30 days before it expires.

This sample is in response to my tweet on using automated tests to check for soon-to-be-expired certs(RTs appreciated). Here's the C# code to do it.

Give a Star! :star:

If this ends up helping you, please give it a star to help others find it. Thanks!

Related Skills

View on GitHub
GitHub Stars79
CategoryDevelopment
Updated1mo ago
Forks12

Languages

C#

Security Score

95/100

Audited on Feb 24, 2026

No findings