Skip to content

Commit 3f2b6ff

Browse files
committed
8361212: Remove AffirmTrust root CAs
Reviewed-by: andrew Backport-of: 5173435bfd0db5db0113a6209f2f827b16598596
1 parent bb19ce3 commit 3f2b6ff

File tree

12 files changed

+12
-503
lines changed

12 files changed

+12
-503
lines changed

jdk/make/data/cacerts/affirmtrustcommercialca

Lines changed: 0 additions & 27 deletions
This file was deleted.

jdk/make/data/cacerts/affirmtrustnetworkingca

Lines changed: 0 additions & 27 deletions
This file was deleted.

jdk/make/data/cacerts/affirmtrustpremiumca

Lines changed: 0 additions & 38 deletions
This file was deleted.

jdk/make/data/cacerts/affirmtrustpremiumeccca

Lines changed: 0 additions & 20 deletions
This file was deleted.

jdk/src/share/classes/sun/security/validator/EntrustTLSPolicy.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -75,19 +75,7 @@ final class EntrustTLSPolicy {
7575
// OU=(c) 1999 Entrust.net Limited,
7676
// OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.),
7777
// O=Entrust.net
78-
"6DC47172E01CBCB0BF62580D895FE2B8AC9AD4F873801E0C10B9C837D21EB177",
79-
// cacerts alias: affirmtrustcommercialca
80-
// DN: CN=AffirmTrust Commercial, O=AffirmTrust, C=US
81-
"0376AB1D54C5F9803CE4B2E201A0EE7EEF7B57B636E8A93C9B8D4860C96F5FA7",
82-
// cacerts alias: affirmtrustnetworkingca
83-
// DN: CN=AffirmTrust Networking, O=AffirmTrust, C=US
84-
"0A81EC5A929777F145904AF38D5D509F66B5E2C58FCDB531058B0E17F3F0B41B",
85-
// cacerts alias: affirmtrustpremiumca
86-
// DN: CN=AffirmTrust Premium, O=AffirmTrust, C=US
87-
"70A73F7F376B60074248904534B11482D5BF0E698ECC498DF52577EBF2E93B9A",
88-
// cacerts alias: affirmtrustpremiumeccca
89-
// DN: CN=AffirmTrust Premium ECC, O=AffirmTrust, C=US
90-
"BD71FDF6DA97E4CF62D1647ADD2581B07D79ADF8397EB4ECBA9C5E8488821423"
78+
"6DC47172E01CBCB0BF62580D895FE2B8AC9AD4F873801E0C10B9C837D21EB177"
9179
)));
9280

9381
// Any TLS Server certificate that is anchored by one of the Entrust

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

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -376,46 +376,6 @@
376376
* @run main/othervm -Djava.security.debug=certpath CAInterop certignarootca CRL
377377
*/
378378

379-
/*
380-
* @test id=affirmtrustcommercialca
381-
* @bug 8040012
382-
* @summary Interoperability tests with AffirmTrust Commercial CA
383-
* @library /test/lib
384-
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
385-
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustcommercialca OCSP
386-
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustcommercialca CRL
387-
*/
388-
389-
/*
390-
* @test id=affirmtrustnetworkingca
391-
* @bug 8040012
392-
* @summary Interoperability tests with AffirmTrust Networking CA
393-
* @library /test/lib
394-
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
395-
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustnetworkingca OCSP
396-
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustnetworkingca CRL
397-
*/
398-
399-
/*
400-
* @test id=affirmtrustpremiumca
401-
* @bug 8040012
402-
* @summary Interoperability tests with AffirmTrust Premium CA
403-
* @library /test/lib
404-
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
405-
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustpremiumca OCSP
406-
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustpremiumca CRL
407-
*/
408-
409-
/*
410-
* @test id=affirmtrustpremiumeccca
411-
* @bug 8040012
412-
* @summary Interoperability tests with AffirmTrust Premium ECC CA
413-
* @library /test/lib
414-
* @build jtreg.SkippedException ValidatePathWithURL CAInterop
415-
* @run main/othervm -Djava.security.debug=certpath,ocsp CAInterop affirmtrustpremiumeccca OCSP
416-
* @run main/othervm -Djava.security.debug=certpath CAInterop affirmtrustpremiumeccca CRL
417-
*/
418-
419379
/*
420380
* @test id=teliarootcav2
421381
* @bug 8317373
@@ -677,20 +637,6 @@ private CATestURLs getTestURLs(String alias) {
677637
return new CATestURLs("https://juolukka.cover.telia.fi:10600",
678638
"https://juolukka.cover.telia.fi:10601");
679639

680-
// These are listed at https://www.affirmtrust.com/resources/
681-
case "affirmtrustcommercialca":
682-
return new CATestURLs("https://validcommercial.affirmtrust.com",
683-
"https://revokedcommercial.affirmtrust.com");
684-
case "affirmtrustnetworkingca":
685-
return new CATestURLs("https://validnetworking.affirmtrust.com",
686-
"https://revokednetworking.affirmtrust.com");
687-
case "affirmtrustpremiumca":
688-
return new CATestURLs("https://validpremium.affirmtrust.com",
689-
"https://revokedpremium.affirmtrust.com");
690-
case "affirmtrustpremiumeccca":
691-
return new CATestURLs("https://validpremiumecc.affirmtrust.com",
692-
"https://revokedpremiumecc.affirmtrust.com");
693-
694640
case "emsignrootcag1":
695641
return new CATestURLs("https://testovg1.emsign.com/RootOVG1.html",
696642
"https://testovg1r.emsign.com/RootOVG1MR.html");

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* 8223499 8225392 8232019 8234245 8233223 8225068 8225069 8243321 8243320
2929
* 8243559 8225072 8258630 8259312 8256421 8225081 8225082 8225083 8245654
3030
* 8305975 8304760 8307134 8295894 8314960 8317373 8317374 8318759 8319187
31-
* 8321408 8316138 8341057 8303770 8350498 8359170
31+
* 8321408 8316138 8341057 8303770 8350498 8359170 8361212
3232
* @summary Check root CA entries in cacerts file
3333
*/
3434
import java.io.ByteArrayInputStream;
@@ -54,12 +54,12 @@ public class VerifyCACerts {
5454
+ File.separator + "security" + File.separator + "cacerts";
5555

5656
// The numbers of certs now.
57-
private static final int COUNT = 113;
57+
private static final int COUNT = 109;
5858

5959
// SHA-256 of cacerts, can be generated with
6060
// shasum -a 256 cacerts | sed -e 's/../&:/g' | tr '[:lower:]' '[:upper:]' | cut -c1-95
6161
private static final String CHECKSUM
62-
= "1E:63:88:DF:34:AD:7E:61:3F:06:BD:C4:DC:FE:05:52:9B:0D:86:6E:64:DA:E8:25:7C:C0:15:8F:31:C0:2C:78";
62+
= "F2:0C:60:47:49:FA:13:2A:03:A4:52:20:AD:46:7C:D0:3F:3D:A7:59:D6:27:E9:9B:CC:D4:5A:04:8D:2A:DE:9F";
6363

6464
// map of cert alias to SHA-256 fingerprint
6565
@SuppressWarnings("serial")
@@ -198,14 +198,6 @@ public class VerifyCACerts {
198198
"43:DF:57:74:B0:3E:7F:EF:5F:E4:0D:93:1A:7B:ED:F1:BB:2E:6B:42:73:8C:4E:6D:38:41:10:3D:3A:A7:F3:39");
199199
put("entrustevca [jdk]",
200200
"73:C1:76:43:4F:1B:C6:D5:AD:F4:5B:0E:76:E7:27:28:7C:8D:E5:76:16:C1:E6:E6:14:1A:2B:2C:BC:7D:8E:4C");
201-
put("affirmtrustnetworkingca [jdk]",
202-
"0A:81:EC:5A:92:97:77:F1:45:90:4A:F3:8D:5D:50:9F:66:B5:E2:C5:8F:CD:B5:31:05:8B:0E:17:F3:F0:B4:1B");
203-
put("affirmtrustpremiumca [jdk]",
204-
"70:A7:3F:7F:37:6B:60:07:42:48:90:45:34:B1:14:82:D5:BF:0E:69:8E:CC:49:8D:F5:25:77:EB:F2:E9:3B:9A");
205-
put("affirmtrustcommercialca [jdk]",
206-
"03:76:AB:1D:54:C5:F9:80:3C:E4:B2:E2:01:A0:EE:7E:EF:7B:57:B6:36:E8:A9:3C:9B:8D:48:60:C9:6F:5F:A7");
207-
put("affirmtrustpremiumeccca [jdk]",
208-
"BD:71:FD:F6:DA:97:E4:CF:62:D1:64:7A:DD:25:81:B0:7D:79:AD:F8:39:7E:B4:EC:BA:9C:5E:84:88:82:14:23");
209201
put("ttelesecglobalrootclass3ca [jdk]",
210202
"FD:73:DA:D3:1C:64:4F:F1:B4:3B:EF:0C:CD:DA:96:71:0B:9C:D9:87:5E:CA:7E:31:70:7A:F3:E9:6D:52:2B:BD");
211203
put("ttelesecglobalrootclass2ca [jdk]",

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
2828

2929
/**
3030
* @test
31-
* @bug 8337664 8341059
31+
* @bug 8337664 8341059 8361212
3232
* @summary Check that TLS Server certificates chaining back to distrusted
3333
* Entrust roots are invalid
3434
* @library /lib/security
@@ -40,14 +40,13 @@
4040

4141
public class Entrust {
4242

43-
private static final String certPath = "chains" + File.separator + "entrust";
43+
private static final String CERT_PATH = "chains" + File.separator + "entrust";
4444

4545
// Each of the roots have a test certificate chain stored in a file
4646
// named "<root>-chain.pem".
47-
private static String[] rootsToTest = new String[]{
48-
"entrustevca", "entrustrootcaec1", "entrustrootcag2", "entrustrootcag4",
49-
"entrust2048ca", "affirmtrustcommercialca", "affirmtrustnetworkingca",
50-
"affirmtrustpremiumca", "affirmtrustpremiumeccca"};
47+
private static final String[] ROOTS_TO_TEST = new String[]{
48+
"entrustevca", "entrustrootcaec1", "entrustrootcag2",
49+
"entrustrootcag4", "entrust2048ca"};
5150

5251
// Date when the restrictions take effect
5352
private static final ZonedDateTime DISTRUST_DATE =
@@ -62,6 +61,6 @@ public static void main(String[] args) throws Exception {
6261
};
6362

6463
Date notBefore = distrust.getNotBefore(DISTRUST_DATE);
65-
distrust.testCertificateChain(certPath, notBefore, tms, rootsToTest);
64+
distrust.testCertificateChain(CERT_PATH, notBefore, tms, ROOTS_TO_TEST);
6665
}
6766
}

jdk/test/sun/security/ssl/X509TrustManagerImpl/distrust/chains/entrust/affirmtrustcommercialca-chain.pem

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)