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

signed jar with only META-INF/* inside is not verifiable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • security-libs
    • b123
    • generic
    • generic
    • Verified

      If a jar file has only META-INF/MANIFEST.SF, then after signing it, the output jarfile is not verifiable. That is to say, running "jarsigner -verify the.jar" shows "jar is unsigned. (signatures missing or not parsable)".

      How to reproduce it:

      echo "Key: Value" > manifest
      jar cvfm the.jar manifest
      jarsigner the.jar me
      jarsigner -verify the.jar

      * Use the "jar m" trick to create a jar file with no "normal" entry.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: