From 58a87676a9366b45fe79018ec8d67aac9d542216 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 8 Jul 2019 18:32:00 +0000 Subject: [PATCH] --- util/OpsDiagnostics.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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;