From b964b38af82ff82b9f9f196493535ef5a1cc6330 Mon Sep 17 00:00:00 2001 From: Richard Hillmann Date: Fri, 11 May 2018 19:43:18 +0200 Subject: [PATCH] fix cert is expired condition --- certstore/request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certstore/request.go b/certstore/request.go index 7741be8..e6e4df8 100644 --- a/certstore/request.go +++ b/certstore/request.go @@ -45,8 +45,8 @@ func (r *CertRequest) matchCertificate(cert *CertificateResource) (bool, error) return true, nil } // cert is expired - log.Printf("certificate is valid until %s but needs to be valid for %i days", certInfo.NotAfter, r.ValidDays) - return true, nil + log.Printf("certificate is valid until %s but needs to be valid for %d days", certInfo.NotAfter, r.ValidDays) + return false, nil } return false, nil