|
@@ -26,7 +26,7 @@ |
|
|
* @test |
|
|
* @bug 8189131 8198240 8191844 8189949 8191031 8196141 8204923 8195774 8199779 |
|
|
* 8209452 8209506 8210432 8195793 8216577 8222089 8222133 8222137 8222136 |
|
|
* 8223499 8225392 8232019 8234245 8233223 8225068 |
|
|
* 8223499 8225392 8232019 8234245 8233223 8225068 8225069 |
|
|
* @summary Check root CA entries in cacerts file |
|
|
*/ |
|
|
import java.io.ByteArrayInputStream; |
|
@@ -52,12 +52,12 @@ |
|
|
+ File.separator + "security" + File.separator + "cacerts"; |
|
|
|
|
|
// The numbers of certs now. |
|
|
private static final int COUNT = 92; |
|
|
private static final int COUNT = 91; |
|
|
|
|
|
// SHA-256 of cacerts, can be generated with |
|
|
// shasum -a 256 cacerts | sed -e 's/../&:/g' | tr '[:lower:]' '[:upper:]' | cut -c1-95 |
|
|
private static final String CHECKSUM |
|
|
= "B1:F9:EA:77:B5:21:84:3D:91:90:DD:53:C9:9E:9C:07:62:08:60:74:1D:75:BD:C7:94:B7:5B:AC:DD:49:2C:34"; |
|
|
= "60:EF:3A:F8:44:CF:79:6F:A3:55:AD:3A:80:61:A7:EE:69:2A:B4:E4:F4:01:C4:47:FF:F8:25:1E:AB:87:31:F2"; |
|
|
|
|
|
// map of cert alias to SHA-256 fingerprint |
|
|
@SuppressWarnings("serial") |
|
@@ -93,8 +93,6 @@ |
|
|
"4F:F4:60:D5:4B:9C:86:DA:BF:BC:FC:57:12:E0:40:0D:2B:ED:3F:BC:4D:4F:BD:AA:86:E0:6A:DC:D2:A9:AD:7A"); |
|
|
put("utnuserfirstobjectca [jdk]", |
|
|
"6F:FF:78:E4:00:A7:0C:11:01:1C:D8:59:77:C4:59:FB:5A:F9:6A:3D:F0:54:08:20:D0:F4:B8:60:78:75:E5:8F"); |
|
|
put("addtrustclass1ca [jdk]", |
|
|
"8C:72:09:27:9A:C0:4E:27:5E:16:D0:7F:D3:B7:75:E8:01:54:B5:96:80:46:E3:1F:52:DD:25:76:63:24:E9:A7"); |
|
|
put("addtrustexternalca [jdk]", |
|
|
"68:7F:A4:51:38:22:78:FF:F0:C8:B1:1F:8D:43:D5:76:67:1C:6E:B2:BC:EA:B4:13:FB:83:D9:65:D0:6D:2F:F2"); |
|
|
put("addtrustqualifiedca [jdk]", |
|
@@ -259,8 +257,6 @@ |
|
|
add("utnuserfirstobjectca [jdk]"); |
|
|
// Valid until: Sat May 30 10:38:31 GMT 2020 |
|
|
add("addtrustexternalca [jdk]"); |
|
|
// Valid until: Sat May 30 10:48:38 GMT 2020 |
|
|
add("addtrustclass1ca [jdk]"); |
|
|
// Valid until: Sat May 30 10:44:50 GMT 2020 |
|
|
add("addtrustqualifiedca [jdk]"); |
|
|
} |
|
|