Skip to content

Commit

Permalink
fix cert is expired condition
Browse files Browse the repository at this point in the history
  • Loading branch information
project0 committed May 11, 2018
1 parent 5a94957 commit b964b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions certstore/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b964b38

Please sign in to comment.