diff --git a/util/OpsDiagnostics.cs b/util/OpsDiagnostics.cs index 951bd80..56845ca 100644 --- a/util/OpsDiagnostics.cs +++ b/util/OpsDiagnostics.cs @@ -41,15 +41,16 @@ namespace rockfishCore.Util /// - /// check if an ssl cert is within 10 days of expiry + /// check if an ssl cert is within 30 days of expiry + /// (30 days is the minimum threshold for LetsEncrypt to allow re-up) /// /// - /// null if more than 10 days before expiry or the expiry date for display + /// null if more than 30 days before expiry or the expiry date for display public static DateTime? SSLCertExpiryDate(string url) { var expires = GetServerCertificateExpiryAsync(url).Result; - //In 10 days will we be past the expiry date - var deadline = DateTime.Now.AddDays(100); + //In 30 days will we be past the expiry date? + var deadline = DateTime.Now.AddDays(30); if (expires < deadline) { return expires;