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

keytool -importkeystore should probe srcstoretype if not specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • None
    • security-libs
    • b130
    • Verified

    Description

      When -storetype is not provided, keytool's internal flag hasStoretypeOption is false and it will probe the keystore file to detect its store type.

      For the -importkeystore command, there are both a source keystore and a destination keystore, as well as the -srcstoretype and -deststoretype options. However, keytool still only uses a single flag for both. The result is that when -deststoretype is provided but -srcstoretype is not provided, it does not probe for the storetype of the source keystore and always uses the default storetype.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: