diff --git a/cf/util/testhelpers/net/make_tls_cert.go b/cf/util/testhelpers/net/make_tls_cert.go index 0932b499d10..ab55003fb0d 100644 --- a/cf/util/testhelpers/net/make_tls_cert.go +++ b/cf/util/testhelpers/net/make_tls_cert.go @@ -14,11 +14,11 @@ import ( ) func MakeSelfSignedTLSCert() tls.Certificate { - return generateCert([]string{"127.0.0.1", "::1"}, time.Date(2020, time.December, 1, 0, 0, 0, 0, time.UTC), true) + return generateCert([]string{"127.0.0.1", "::1"}, time.Date(2200, time.December, 1, 0, 0, 0, 0, time.UTC), true) } func MakeTLSCertWithInvalidHost() tls.Certificate { - return generateCert([]string{"example.com"}, time.Date(2020, time.December, 1, 0, 0, 0, 0, time.UTC), true) + return generateCert([]string{"example.com"}, time.Date(2200, time.December, 1, 0, 0, 0, 0, time.UTC), true) } func MakeExpiredTLSCert() tls.Certificate { @@ -26,7 +26,7 @@ func MakeExpiredTLSCert() tls.Certificate { } func MakeUnauthorizedTLSCert() tls.Certificate { - return generateCert([]string{"127.0.0.1", "::1"}, time.Date(2020, time.December, 1, 0, 0, 0, 0, time.UTC), false) + return generateCert([]string{"127.0.0.1", "::1"}, time.Date(2200, time.December, 1, 0, 0, 0, 0, time.UTC), false) } func generateCert(hosts []string, notAfter time.Time, isAuthorizedToSign bool) tls.Certificate {