Skip to content

Commit

Permalink
improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
encbladexp committed Sep 30, 2024
1 parent cfb334e commit 7eef2bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,11 @@ func (c *Certificates) process_line(line []string) {
func (c *Certificates) print_expired() {
for _, cert := range c.Certificates {
if cert.Expired.Before(TIME_NOW) {
fmt.Println("That certificate is already expired!")
} else if cert.Expired.Before(TIME_30D) {
fmt.Println("Oh Shit")
fmt.Println("This certificate will expire in <= 30d")
} else if cert.Expired.Before(TIME_90D) {
fmt.Println("Shitty Shit!")
fmt.Println(cert)
fmt.Println(*cert.CN)
fmt.Println("This certificate will expire in <= 90d")
}
}
}
Expand Down

0 comments on commit 7eef2bc

Please sign in to comment.