Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timeToExpire (0.18 sec)

  1. 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)
Back to top