udate expiration time from 14 to 30 days

This commit is contained in:
Maksym Sadovnychyy 2019-10-27 18:10:04 +01:00
parent 8e95c1c19b
commit 414d05079a
2 changed files with 6 additions and 2 deletions

View File

@ -514,7 +514,7 @@ namespace ACMEv2
var cert = new X509Certificate2(Encoding.ASCII.GetBytes(cache.Cert)); var cert = new X509Certificate2(Encoding.ASCII.GetBytes(cache.Cert));
// if it is about to expire, we need to refresh // 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; return false;
var rsa = new RSACryptoServiceProvider(4096); var rsa = new RSACryptoServiceProvider(4096);

View File

@ -23,8 +23,12 @@
"hosts": [ "hosts": [
"maks-it.com", "maks-it.com",
"www.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", "api.maks-it.com",
"www.api.maks-it.com", "www.api.maks-it.com"
], ],
"challenge": "http-01" "challenge": "http-01"
} }