- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for timeToExpire (0.13 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) -
pilot/pkg/bootstrap/server_test.go
} cert, certErr := util.ParsePemEncodedCertificate(rotatedCertBytes) if certErr != nil { t.Fatalf("rotated cert is not valid") } currTime := time.Now() timeToExpire := cert.NotAfter.Sub(currTime) if timeToExpire < 0 { t.Fatalf("rotated cert is already expired") } }) } } func checkCert(t *testing.T, s *Server, cert, key []byte) bool { t.Helper()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0)