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

jpackage creates Windows installers that cannot be signed

XMLWordPrintable

    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10 with JDK 17.0.11

      A DESCRIPTION OF THE PROBLEM :
      Same issue as https://bugs.openjdk.org/browse/JDK-8326447 but on JDK 17. It was working with JDK 7.0.8. It is not working any more since JDK 17.0.10.
      As JDK-8326447 fix is planned for JDK 24 and this is a regression, it should be fixed all long term support version

      REGRESSION : Last worked in version 17

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Same as https://bugs.openjdk.org/browse/JDK-8326447

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      signtool should not fail when signing executable produced by jpackage
      ACTUAL -
      signtool retrun the following error :
      Number of files successfully Signed: 0
      Number of warnings: 0
      Number of errors: 1
      SignTool Error: SignedCode::Sign returned error: 0x800700C1
      SignTool Error: An error occurred while attempting to sign: StimulusEditor.exe

      Execution failed for task ':Editor:signStimulusExe'.
      > Process 'command 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe'' finished with non-zero exit value 1


      ---------- BEGIN SOURCE ----------
      Same as https://bugs.openjdk.org/browse/JDK-8326447
      ---------- END SOURCE ----------

      FREQUENCY : always


            asajeev Anjana Sajeev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: