Skip to content

Commit

Permalink
Merge pull request #5 from akamac/patch-1
Browse files Browse the repository at this point in the history
fix expiredCertsCounter condition
  • Loading branch information
aarnaud authored May 30, 2022
2 parents 2eb0a3b + 593110b commit 033b28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vault-mon/pki.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (pki *PKI) loadCerts() error {
pki.certs[cert.Subject.CommonName] = cert
}

if cert.NotAfter.Unix() > time.Now().Unix() {
if cert.NotAfter.Unix() < time.Now().Unix() {
pki.expiredCertsCounter++
}

Expand Down

0 comments on commit 033b28d

Please sign in to comment.