fix everything

This commit is contained in:
crapStone 2024-04-30 23:52:20 +02:00 committed by crapStone
parent ca4f62a496
commit 19e1471c71
2 changed files with 73 additions and 1 deletions

View file

@ -199,7 +199,6 @@ func (c *AcmeClient) retrieveCertFromDB(sni, mainDomainSuffix string, useDnsProv
// TODO: document & put into own function
if !strings.EqualFold(sni, mainDomainSuffix) {
// renew certificates 7 days before they expire
if tlsCertificate.Leaf.NotAfter.Before(time.Now().Add(7 * 24 * time.Hour)) {
// TODO: use ValidTill of custom cert struct