keytool uses a strange decoding on password entered at prompt

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P5
    • None
    • Affects Version/s: 6
    • Component/s: security-libs
    • None

      keytool (or, precisely, sun.security.util.Password.readPassword) decodes a password entered at a prompt in a very strange style, thus results in a char array which is different from what the user intends to enter (in the case of a non-ASCII password). So --

         $keytool -genkey ... -storepass non-ascii-password
         OK
         $keytool -list
         Enter password: non-ascii-password
         Sorry, cannot be loaded, bad password.

      This is quite embarrassing.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: