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

keytool doesn't print certificate info if disabled algorithm was used for signing a jar

XMLWordPrintable

    • b142
    • 9
    • b145
    • generic
    • generic
    • Verified

        "keytool -printcert" is supposed to print info about certificate which was used to sign a jar file. It says "Not a signed jar file" if one of disabled algorithms (see "jdk.jar.disabledAlgorithms" security property) was used for jar signing.

        Please see attached signed jars:
        signed-app-md2-rsa-2048.jar - signed with MD2withRSA
        signed-app-md5-rsa-2048.jar - signed with MD5withRSA

        The following command doesn't work with JDK 9 b142:

        keytool -printcert -jarfile signed-app-md5-rsa-2048.jar

        It would be better if "-printcert" command printed info about singers even if they use disabled algorithms.

              asmotrak Artem Smotrakov
              asmotrak Artem Smotrakov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: