Skip to content
A simple xUnit C# test showing how to verify a certificate for a domain has at least 30 days before it expires.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CertCheck Initial version May 8, 2019
.gitignore Initial commit May 8, 2019
CertCheck.sln Initial version May 8, 2019
LICENSE
README.md Initial version May 8, 2019

README.md

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!

You can’t perform that action at this time.