Skip to content

Commit d107ace

Browse files
Merge in jdk-23.0.1+11 (24.1)
PullRequest: labsjdk-ce/115
2 parents 519b5c1 + 0678524 commit d107ace

File tree

8 files changed

+109
-17
lines changed

8 files changed

+109
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ jdk.sasl.disabledMechanisms=
13311331
# Distrust after December 31, 2019.
13321332
#
13331333
# ENTRUST_TLS : Distrust TLS Server certificates anchored by
1334-
# an Entrust root CA and issued after October 31, 2024.
1334+
# an Entrust root CA and issued after November 11, 2024.
13351335
#
13361336
# Leading and trailing whitespace surrounding each value are ignored.
13371337
# Unknown values are ignored. If the property is commented out or set to the
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Owner: CN=SSL.com TLS ECC Root CA 2022, O=SSL Corporation, C=US
2+
Issuer: CN=SSL.com TLS ECC Root CA 2022, O=SSL Corporation, C=US
3+
Serial number: 1403f5abfb378b17405be243b2a5d1c4
4+
Valid from: Thu Aug 25 16:33:48 GMT 2022 until: Sun Aug 19 16:33:47 GMT 2046
5+
Signature algorithm name: SHA384withECDSA
6+
Subject Public Key Algorithm: 384-bit EC (secp384r1) key
7+
Version: 3
8+
-----BEGIN CERTIFICATE-----
9+
MIICOjCCAcCgAwIBAgIQFAP1q/s3ixdAW+JDsqXRxDAKBggqhkjOPQQDAzBOMQsw
10+
CQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQDDBxT
11+
U0wuY29tIFRMUyBFQ0MgUm9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzM0OFoXDTQ2
12+
MDgxOTE2MzM0N1owTjELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD1NTTCBDb3Jwb3Jh
13+
dGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgRUNDIFJvb3QgQ0EgMjAyMjB2MBAG
14+
ByqGSM49AgEGBSuBBAAiA2IABEUpNXP6wrgjzhR9qLFNoFs27iosU8NgCTWyJGYm
15+
acCzldZdkkAZDsalE3D07xJRKF3nzL35PIXBz5SQySvOkkJYWWf9lCcQZIxPBLFN
16+
SeR7T5v15wj4A4j3p8OSSxlUgaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSME
17+
GDAWgBSJjy+j6CugFFR781a4Jl9nOAuc0DAdBgNVHQ4EFgQUiY8vo+groBRUe/NW
18+
uCZfZzgLnNAwDgYDVR0PAQH/BAQDAgGGMAoGCCqGSM49BAMDA2gAMGUCMFXjIlbp
19+
15IkWE8elDIPDAI2wv2sdDJO4fscgIijzPvX6yv/N33w7deedWo1dlJF4AIxAMeN
20+
b0Igj762TVntd00pxCAgRWSGOlDGxK0tk/UYfXLtqc/ErFc2KAhl3zx5Zn6g6g==
21+
-----END CERTIFICATE-----
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Owner: CN=SSL.com TLS RSA Root CA 2022, O=SSL Corporation, C=US
2+
Issuer: CN=SSL.com TLS RSA Root CA 2022, O=SSL Corporation, C=US
3+
Serial number: 6fbedaad73bd0840e28b4dbed4f75b91
4+
Valid from: Thu Aug 25 16:34:22 GMT 2022 until: Sun Aug 19 16:34:21 GMT 2046
5+
Signature algorithm name: SHA256withRSA
6+
Subject Public Key Algorithm: 4096-bit RSA key
7+
Version: 3
8+
-----BEGIN CERTIFICATE-----
9+
MIIFiTCCA3GgAwIBAgIQb77arXO9CEDii02+1PdbkTANBgkqhkiG9w0BAQsFADBO
10+
MQswCQYDVQQGEwJVUzEYMBYGA1UECgwPU1NMIENvcnBvcmF0aW9uMSUwIwYDVQQD
11+
DBxTU0wuY29tIFRMUyBSU0EgUm9vdCBDQSAyMDIyMB4XDTIyMDgyNTE2MzQyMloX
12+
DTQ2MDgxOTE2MzQyMVowTjELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD1NTTCBDb3Jw
13+
b3JhdGlvbjElMCMGA1UEAwwcU1NMLmNvbSBUTFMgUlNBIFJvb3QgQ0EgMjAyMjCC
14+
AiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANCkCXJPQIgSYT41I57u9nTP
15+
L3tYPc48DRAokC+X94xI2KDYJbFMsBFMF3NQ0CJKY7uB0ylu1bUJPiYYf7ISf5OY
16+
t6/wNr/y7hienDtS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4+a0zvkEdiLA9z2tmBVGKaBUfPhqBVq6+AL8BQx1rmMRTqoENjwuSfr98t67wVy
33+
lrXEj5ZzxOhWc5y8aVFjvO9nHEMaX3cZHxj4HCUp+UmZKbaSPaKDN7EgkaibMOlq
34+
bLQjk2UEqxHzDh1TJElTHaE/nUiSEeJ9DU/1172iWD54nR4fK/4huxoTtrEoZP2w
35+
AgDHbICivRZQIA9ygV/MlP+7mea6kMvq+cYMwq7FGc4zoWtcu358NFcXrfA/rs3q
36+
r5nsLFR+jM4uElZI7xc7P0peYNLcdDa8pUNjyw9bowJWCZ4kLOGGgYz+qxcs+sji
37+
Mho6/4UIyYOf8kpIEFR3N+2ivEC+5BB09+Rbu7nzifmPQdjH5FCQNYA+HLhNkNPU
38+
98OwoX6EyneSMSy4kLGCenROmxMmtNVQZlR4rmA=
39+
-----END CERTIFICATE-----

test/jdk/security/infra/java/security/cert/CertPathValidator/certification/CAInterop.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,28 @@
533533
* @run main/othervm/manual -Djava.security.debug=certpath CAInterop globalsigne46 CRL
534534
*/
535535

536+
/*
537+
* @test id=ssltlsrootecc2022
538+
* @bug 8341057
539+
* @summary Interoperability tests with SSL TLS 2022 root CAs
540+
* @library /test/lib
541+
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
542+
* @run main/othervm/manual -Djava.security.debug=certpath,ocsp CAInterop ssltlsrootecc2022 DEFAULT
543+
* @run main/othervm/manual -Djava.security.debug=certpath,ocsp -Dcom.sun.security.ocsp.useget=false CAInterop ssltlsrootecc2022 DEFAULT
544+
* @run main/othervm/manual -Djava.security.debug=certpath CAInterop ssltlsrootecc2022 CRL
545+
*/
546+
547+
/*
548+
* @test id=ssltlsrootrsa2022
549+
* @bug 8341057
550+
* @summary Interoperability tests with SSL TLS 2022 root CAs
551+
* @library /test/lib
552+
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
553+
* @run main/othervm/manual -Djava.security.debug=certpath,ocsp CAInterop ssltlsrootrsa2022 DEFAULT
554+
* @run main/othervm/manual -Djava.security.debug=certpath,ocsp -Dcom.sun.security.ocsp.useget=false CAInterop ssltlsrootrsa2022 DEFAULT
555+
* @run main/othervm/manual -Djava.security.debug=certpath CAInterop ssltlsrootrsa2022 CRL
556+
*/
557+
536558
/**
537559
* Collection of certificate validation tests for interoperability with external CAs.
538560
* These tests are marked as manual as they depend on external infrastructure and may fail
@@ -711,6 +733,13 @@ private CATestURLs getTestURLs(String alias) {
711733
new CATestURLs("https://valid.e46.roots.globalsign.com",
712734
"https://revoked.e46.roots.globalsign.com");
713735

736+
case "ssltlsrootecc2022" ->
737+
new CATestURLs("https://test-root-2022-ecc.ssl.com",
738+
"https://revoked-root-2022-ecc.ssl.com");
739+
case "ssltlsrootrsa2022" ->
740+
new CATestURLs("https://test-root-2022-rsa.ssl.com",
741+
"https://revoked-root-2022-rsa.ssl.com");
742+
714743
default -> throw new RuntimeException("No test setup found for: " + alias);
715744
};
716745
}

test/jdk/sun/security/lib/cacerts/VerifyCACerts.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@
1919
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
22-
*
2322
*/
2423

25-
/**
24+
/*
2625
* @test
2726
* @bug 8189131 8198240 8191844 8189949 8191031 8196141 8204923 8195774 8199779
2827
* 8209452 8209506 8210432 8195793 8216577 8222089 8222133 8222137 8222136
2928
* 8223499 8225392 8232019 8234245 8233223 8225068 8225069 8243321 8243320
3029
* 8243559 8225072 8258630 8259312 8256421 8225081 8225082 8225083 8245654
3130
* 8305975 8304760 8307134 8295894 8314960 8317373 8317374 8318759 8319187
32-
* 8321408 8316138
31+
* 8321408 8316138 8341057
3332
* @summary Check root CA entries in cacerts file
3433
*/
3534
import java.io.ByteArrayInputStream;
@@ -48,12 +47,12 @@ public class VerifyCACerts {
4847
+ File.separator + "security" + File.separator + "cacerts";
4948

5049
// The numbers of certs now.
51-
private static final int COUNT = 110;
50+
private static final int COUNT = 112;
5251

5352
// SHA-256 of cacerts, can be generated with
5453
// shasum -a 256 cacerts | sed -e 's/../&:/g' | tr '[:lower:]' '[:upper:]' | cut -c1-95
5554
private static final String CHECKSUM
56-
= "BD:80:65:81:68:E5:6C:51:64:ED:B9:08:53:9F:BB:2F:D9:6C:5D:D4:06:D4:16:59:39:10:8E:F8:24:81:8B:78";
55+
= "21:68:E7:16:5B:94:23:D2:60:5C:BB:F2:AF:C1:66:5C:EC:36:BC:20:FF:5C:54:AF:91:D1:2C:38:AE:55:D3:27";
5756

5857
// Hex formatter to upper case with ":" delimiter
5958
private static final HexFormat HEX = HexFormat.ofDelimiter(":").withUpperCase();
@@ -282,6 +281,10 @@ public class VerifyCACerts {
282281
"4F:A3:12:6D:8D:3A:11:D1:C4:85:5A:4F:80:7C:BA:D6:CF:91:9D:3A:5A:88:B0:3B:EA:2C:63:72:D9:3C:40:C9");
283282
put("globalsigne46 [jdk]",
284283
"CB:B9:C4:4D:84:B8:04:3E:10:50:EA:31:A6:9F:51:49:55:D7:BF:D2:E2:C6:B4:93:01:01:9A:D6:1D:9F:50:58");
284+
put("ssltlsrootecc2022 [jdk]",
285+
"C3:2F:FD:9F:46:F9:36:D1:6C:36:73:99:09:59:43:4B:9A:D6:0A:AF:BB:9E:7C:F3:36:54:F1:44:CC:1B:A1:43");
286+
put("ssltlsrootrsa2022 [jdk]",
287+
"8F:AF:7D:2E:2C:B4:70:9B:B8:E0:B3:36:66:BF:75:A5:DD:45:B5:DE:48:0F:8E:A8:D4:BF:E6:BE:BC:17:F2:ED");
285288
}
286289
};
287290

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

Lines changed: 6 additions & 6 deletions
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);

0 commit comments

Comments
 (0)