Code to check SSL Client Certificate Expiration remotely Language: C# (C Sharp) using MS Visual Studio Express 2010 Reference: System.Net.ServicePointManager , another sample code from stackOverflow Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Diagnostics; namespace CertCheck { class Program { static void Main(string[] args) { //Get URL from command line to check if (args.Length==0) { Console.WriteLine("Usage: CertCheck <https://url> [-v]"); Console.WriteLine("Enter an url with https prefix"); Console.WriteLine("Add -v for verbose output. By default, this will print just the number of days on the console"); return; } string https_url = args[0]; bool bVerbose=false; if (args.Length > 1)