Skip to content

Commit 5173435

Browse files
author
Antonio Vieiro
committed
8361212: Remove AffirmTrust root CAs
Reviewed-by: sgehwolf Backport-of: d21c6cf5986b699ec56922ebc109e176cf56733e
1 parent e81cda2 commit 5173435

File tree

12 files changed

+12
-503
lines changed

12 files changed

+12
-503
lines changed

make/data/cacerts/affirmtrustcommercialca

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

make/data/cacerts/affirmtrustnetworkingca

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

make/data/cacerts/affirmtrustpremiumca

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

make/data/cacerts/affirmtrustpremiumeccca

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

src/java.base/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
@@ -71,19 +71,7 @@ final class EntrustTLSPolicy {
7171
// OU=(c) 1999 Entrust.net Limited,
7272
// OU=www.entrust.net/CPS_2048 incorp. by ref. (limits liab.),
7373
// O=Entrust.net
74-
"6DC47172E01CBCB0BF62580D895FE2B8AC9AD4F873801E0C10B9C837D21EB177",
75-
// cacerts alias: affirmtrustcommercialca
76-
// DN: CN=AffirmTrust Commercial, O=AffirmTrust, C=US
77-
"0376AB1D54C5F9803CE4B2E201A0EE7EEF7B57B636E8A93C9B8D4860C96F5FA7",
78-
// cacerts alias: affirmtrustnetworkingca
79-
// DN: CN=AffirmTrust Networking, O=AffirmTrust, C=US
80-
"0A81EC5A929777F145904AF38D5D509F66B5E2C58FCDB531058B0E17F3F0B41B",
81-
// cacerts alias: affirmtrustpremiumca
82-
// DN: CN=AffirmTrust Premium, O=AffirmTrust, C=US
83-
"70A73F7F376B60074248904534B11482D5BF0E698ECC498DF52577EBF2E93B9A",
84-
// cacerts alias: affirmtrustpremiumeccca
85-
// DN: CN=AffirmTrust Premium ECC, O=AffirmTrust, C=US
86-
"BD71FDF6DA97E4CF62D1647ADD2581B07D79ADF8397EB4ECBA9C5E8488821423"
74+
"6DC47172E01CBCB0BF62580D895FE2B8AC9AD4F873801E0C10B9C837D21EB177"
8775
);
8876

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

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

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

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

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

test/jdk/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;
@@ -47,12 +47,12 @@ public class VerifyCACerts {
4747
+ File.separator + "security" + File.separator + "cacerts";
4848

4949
// The numbers of certs now.
50-
private static final int COUNT = 113;
50+
private static final int COUNT = 109;
5151

5252
// SHA-256 of cacerts, can be generated with
5353
// shasum -a 256 cacerts | sed -e 's/../&:/g' | tr '[:lower:]' '[:upper:]' | cut -c1-95
5454
private static final String CHECKSUM
55-
= "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";
55+
= "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";
5656

5757
// map of cert alias to SHA-256 fingerprint
5858
@SuppressWarnings("serial")
@@ -190,14 +190,6 @@ public class VerifyCACerts {
190190
"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");
191191
put("entrustevca [jdk]",
192192
"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");
193-
put("affirmtrustnetworkingca [jdk]",
194-
"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");
195-
put("affirmtrustpremiumca [jdk]",
196-
"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");
197-
put("affirmtrustcommercialca [jdk]",
198-
"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");
199-
put("affirmtrustpremiumeccca [jdk]",
200-
"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");
201193
put("ttelesecglobalrootclass3ca [jdk]",
202194
"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");
203195
put("ttelesecglobalrootclass2ca [jdk]",

test/jdk/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 /test/lib
@@ -41,14 +41,13 @@
4141

4242
public class Entrust {
4343

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

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

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

6564
Date notBefore = distrust.getNotBefore(DISTRUST_DATE);
66-
distrust.testCertificateChain(certPath, notBefore, tms, rootsToTest);
65+
distrust.testCertificateChain(CERT_PATH, notBefore, tms, ROOTS_TO_TEST);
6766
}
6867
}

test/jdk/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)