- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for timeToExpire (0.11 sec)
-
security/pkg/util/certutil.go
cert, certErr := util.ParsePemEncodedCertificate(certBytes) if certErr != nil { return time.Duration(0), certErr } timeToExpire := cert.NotAfter.Sub(now) if timeToExpire < 0 { return time.Duration(0), fmt.Errorf("certificate already expired at %s, but now is %s", cert.NotAfter, now) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 30 19:33:26 UTC 2023 - 2.3K bytes - Viewed (0)