derekforeman / CertExpirationCheck

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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! ⭐

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

About

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

License:MIT License


Languages

Language:C# 100.0%