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

Add a -providerPath option to jarsigner

    XMLWordPrintable

Details

    • CSR
    • Status: Closed
    • P3
    • Resolution: Approved
    • 19
    • security-libs
    • None
    • behavioral
    • minimal
    • A new option. No compatibility risk.
    • add/remove/modify command line option
    • JDK

    Description

      Summary

      Add a -providerpath option to jarsigner so that it can load a keystore implementation not provided by JDK. keytool already have the same option long ago.

      Problem

      If a keystore implementation is not inside JDK, using it with jarsigner needs the -J-cp -Jpath/to/jar option. We should follow the keytool style by providing a dedicated option for it.

      Solution

      Add a -providerpath option to jarsigner. It works with the -providerClass option to load an external keystore implementation just like in keytool.

      Specification

      jarsigner -help will shown an extra line for this new option.

      [-providerPath <list>]      provider classpath

      Add the following lines into the "Options for jarsigner" section of the jarsigner page at https://docs.oracle.com/en/java/javase/17/docs/specs/man/jarsigner.html#options-for-jarsigner:

      `-providerPath` *classpath*
      :   Used to specify the classpath for providers specified by the `-providerClass`
          option. Multiple paths should be separated by the system-dependent
          path-separator character.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: