Skip to content

Commit

Permalink
fix expiredCertsCounter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
akamac authored May 30, 2022
1 parent 2eb0a3b commit 593110b
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 593110b

Please sign in to comment.