3333
3434/**
3535 * @test
36- * @bug 8337664
36+ * @bug 8337664 8341059
3737 * @summary Check that TLS Server certificates chaining back to distrusted
3838 * Entrust roots are invalid
3939 * @library /lib/security
@@ -56,14 +56,14 @@ public class Distrust {
5656 "affirmtrustpremiumca" , "affirmtrustpremiumeccca" };
5757
5858 // A date that is after the restrictions take effect
59- private static final Date NOVEMBER_1_2024 =
60- Date .from (LocalDate .of (2024 , 11 , 1 )
59+ private static final Date NOVEMBER_12_2024 =
60+ Date .from (LocalDate .of (2024 , 11 , 12 )
6161 .atStartOfDay (ZoneOffset .UTC )
6262 .toInstant ());
6363
6464 // A date that is a second before the restrictions take effect
65- private static final Date BEFORE_NOVEMBER_1_2024 =
66- Date .from (LocalDate .of (2024 , 11 , 1 )
65+ private static final Date BEFORE_NOVEMBER_12_2024 =
66+ Date .from (LocalDate .of (2024 , 11 , 12 )
6767 .atStartOfDay (ZoneOffset .UTC )
6868 .minusSeconds (1 )
6969 .toInstant ());
@@ -81,7 +81,7 @@ public static void main(String[] args) throws Exception {
8181 Security .setProperty ("jdk.security.caDistrustPolicies" , "" );
8282 }
8383
84- Date notBefore = before ? BEFORE_NOVEMBER_1_2024 : NOVEMBER_1_2024 ;
84+ Date notBefore = before ? BEFORE_NOVEMBER_12_2024 : NOVEMBER_12_2024 ;
8585
8686 X509TrustManager pkixTM = getTMF ("PKIX" , null );
8787 X509TrustManager sunX509TM = getTMF ("SunX509" , null );
0 commit comments