From 414d05079a5875118bbce262d802d011da380150 Mon Sep 17 00:00:00 2001 From: Maksym Sadovnychyy Date: Sun, 27 Oct 2019 18:10:04 +0100 Subject: [PATCH] udate expiration time from 14 to 30 days --- LetsEncrypt/ACMEv2/LetsEncryptClient.cs | 2 +- LetsEncrypt/settings.json | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/LetsEncrypt/ACMEv2/LetsEncryptClient.cs b/LetsEncrypt/ACMEv2/LetsEncryptClient.cs index be78277..e567a1a 100644 --- a/LetsEncrypt/ACMEv2/LetsEncryptClient.cs +++ b/LetsEncrypt/ACMEv2/LetsEncryptClient.cs @@ -514,7 +514,7 @@ namespace ACMEv2 var cert = new X509Certificate2(Encoding.ASCII.GetBytes(cache.Cert)); // if it is about to expire, we need to refresh - if ((cert.NotAfter - DateTime.UtcNow).TotalDays < 14) + if ((cert.NotAfter - DateTime.UtcNow).TotalDays < 30) return false; var rsa = new RSACryptoServiceProvider(4096); diff --git a/LetsEncrypt/settings.json b/LetsEncrypt/settings.json index 851672c..3654827 100644 --- a/LetsEncrypt/settings.json +++ b/LetsEncrypt/settings.json @@ -23,8 +23,12 @@ "hosts": [ "maks-it.com", "www.maks-it.com", + "it.maks-it.com", + "www.it.maks-it.com", + "ru.maks-it.com", + "www.ru.maks-it.com", "api.maks-it.com", - "www.api.maks-it.com", + "www.api.maks-it.com" ], "challenge": "http-01" }