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

jarsigner Java 8u121 causes error "Enter key password for myAlias"

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.8.0_121"
      Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Darwin f45c89aa1a91.ant.amazon.com 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64

      A DESCRIPTION OF THE PROBLEM :
      jarsigner is asking for additional key password which actually doesn't exist



      REGRESSION. Last worked in version 8u111

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      with jarsigner 8u121
      $jarsigner -storetype pkcs12 -keystore cert.p12 -storepass XXX my.jar "myAlias"
      Enter key password for myAlias:



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Using another java version it is possible to see the expected result

      with jarsigner 8u111
      $jarsigner -storetype pkcs12 -keystore cert.p12 -storepass XXX my.jar "myAlias"
      jar signed

      with jarsigner 7u80
      $jarsigner -storetype pkcs12 -keystore cert.p12 -storepass XXX my.jar "myAlias"
      jar signed

      with jarsigner 9beta
      $jarsigner -storetype pkcs12 -keystore cert.p12 -storepass XXX my.jar "myAlias"
      jar signed

      REPRODUCIBILITY :
      This bug can be reproduced always.

            valeriep Valerie Peng
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: