Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234245

sun/security/lib/cacerts/VerifyCACerts.java fails due to wrong checksum

XMLWordPrintable

    • b24
    • Verified

        * Reproduce
        ```
        make test TEST="sun/security/lib/cacerts/VerifyCACerts.java" CONF=server-release
        ```

        * Symptom
        ```
        STDERR:
        ERROR: wrong checksum
        DE:71:94:6D:6C:5B:2A:AE:5C:AC:D1:3E:07:23:B6:43:CB:F7:32:69:32:04:36:9C:B4:11:78:6A:49:9D:C5:AB
        Expected checksum
        C7:BE:67:B5:2E:35:17:5E:95:3E:61:68:F8:CF:D0:FB:7F:21:63:91:1E:C2:4D:A2:FE:1B:D4:D4:FA:86:52:7E
        java.lang.Exception: At least one cacert test failed
                at VerifyCACerts.main(VerifyCACerts.java:345)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:564)
                at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
                at java.base/java.lang.Thread.run(Thread.java:833)

        JavaTest Message: Test threw exception: java.lang.Exception
        JavaTest Message: shutting down test
        ```

        * It might be fixed by
        ```
        diff -r 6f42d2a19117 test/jdk/sun/security/lib/cacerts/VerifyCACerts.java
        --- a/test/jdk/sun/security/lib/cacerts/VerifyCACerts.java Fri Nov 15 11:09:29 2019 +0100
        +++ b/test/jdk/sun/security/lib/cacerts/VerifyCACerts.java Fri Nov 15 19:32:55 2019 +0800
        @@ -57,7 +57,7 @@
             // 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
        - = "C7:BE:67:B5:2E:35:17:5E:95:3E:61:68:F8:CF:D0:FB:7F:21:63:91:1E:C2:4D:A2:FE:1B:D4:D4:FA:86:52:7E";
        + = "DE:71:94:6D:6C:5B:2A:AE:5C:AC:D1:3E:07:23:B6:43:CB:F7:32:69:32:04:36:9C:B4:11:78:6A:49:9D:C5:AB";

             // map of cert alias to SHA-256 fingerprint
             @SuppressWarnings("serial")
        ```

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: