Skip to content

Commit 82c330b

Browse files
committedOct 1, 2024
8341059: Change Entrust TLS distrust date to November 12, 2024
Backport-of: eced83e13090748218ab3dac78f6ff1bddf2b158
1 parent 217b9fd commit 82c330b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed
 

‎src/java.base/share/classes/sun/security/validator/CADistrustPolicy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void checkDistrust(String variant, X509Certificate[] chain)
5757

5858
/**
5959
* Distrust TLS Server certificates anchored by an Entrust root CA and
60-
* issued after October 31, 2024. If enabled, this policy is currently
60+
* issued after November 11, 2024. If enabled, this policy is currently
6161
* enforced by the PKIX and SunX509 TrustManager implementations
6262
* of the SunJSSE provider implementation.
6363
*/

‎src/java.base/share/classes/sun/security/validator/EntrustTLSPolicy.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ final class EntrustTLSPolicy {
8888

8989
// Any TLS Server certificate that is anchored by one of the Entrust
9090
// roots above and is issued after this date will be distrusted.
91-
private static final LocalDate OCTOBER_31_2024 =
92-
LocalDate.of(2024, Month.OCTOBER, 31);
91+
private static final LocalDate NOVEMBER_11_2024 =
92+
LocalDate.of(2024, Month.NOVEMBER, 11);
9393

9494
/**
9595
* This method assumes the eeCert is a TLS Server Cert and chains back to
@@ -111,8 +111,8 @@ static void checkDistrust(X509Certificate[] chain)
111111
Date notBefore = chain[0].getNotBefore();
112112
LocalDate ldNotBefore = LocalDate.ofInstant(notBefore.toInstant(),
113113
ZoneOffset.UTC);
114-
// reject if certificate is issued after October 31, 2024
115-
checkNotBefore(ldNotBefore, OCTOBER_31_2024, anchor);
114+
// reject if certificate is issued after November 11, 2024
115+
checkNotBefore(ldNotBefore, NOVEMBER_11_2024, anchor);
116116
}
117117
}
118118

‎src/java.base/share/conf/security/java.security

+1-1
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ jdk.sasl.disabledMechanisms=
12881288
# Distrust after December 31, 2019.
12891289
#
12901290
# ENTRUST_TLS : Distrust TLS Server certificates anchored by
1291-
# an Entrust root CA and issued after October 31, 2024.
1291+
# an Entrust root CA and issued after November 11, 2024.
12921292
#
12931293
# Leading and trailing whitespace surrounding each value are ignored.
12941294
# Unknown values are ignored. If the property is commented out or set to the

‎test/jdk/sun/security/ssl/X509TrustManagerImpl/Entrust/Distrust.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
/**
3737
* @test
38-
* @bug 8337664
38+
* @bug 8337664 8341059
3939
* @summary Check that TLS Server certificates chaining back to distrusted
4040
* Entrust roots are invalid
4141
* @library /test/lib
@@ -59,14 +59,14 @@ public class Distrust {
5959
"affirmtrustpremiumca", "affirmtrustpremiumeccca" };
6060

6161
// A date that is after the restrictions take effect
62-
private static final Date NOVEMBER_1_2024 =
63-
Date.from(LocalDate.of(2024, 11, 1)
62+
private static final Date NOVEMBER_12_2024 =
63+
Date.from(LocalDate.of(2024, 11, 12)
6464
.atStartOfDay(ZoneOffset.UTC)
6565
.toInstant());
6666

6767
// A date that is a second before the restrictions take effect
68-
private static final Date BEFORE_NOVEMBER_1_2024 =
69-
Date.from(LocalDate.of(2024, 11, 1)
68+
private static final Date BEFORE_NOVEMBER_12_2024 =
69+
Date.from(LocalDate.of(2024, 11, 12)
7070
.atStartOfDay(ZoneOffset.UTC)
7171
.minusSeconds(1)
7272
.toInstant());
@@ -84,7 +84,7 @@ public static void main(String[] args) throws Exception {
8484
Security.setProperty("jdk.security.caDistrustPolicies", "");
8585
}
8686

87-
Date notBefore = before ? BEFORE_NOVEMBER_1_2024 : NOVEMBER_1_2024;
87+
Date notBefore = before ? BEFORE_NOVEMBER_12_2024 : NOVEMBER_12_2024;
8888

8989
X509TrustManager pkixTM = getTMF("PKIX", null);
9090
X509TrustManager sunX509TM = getTMF("SunX509", null);

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Oct 1, 2024

@openjdk-notifier[bot]
Please sign in to comment.