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

keytool -ext camel-case shorthand not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 14
    • 13
    • security-libs
    • b22
    • Verified

    Description

      The following command returns an error:

      $ keytool -alias foo -dname "CN=Foo" -genkeypair -keystore ./keystore -ext ku:c=dig,kE -storepass changeit
      keytool error: java.lang.Exception: command kE is ambiguous:
           keyEncipherment keyAgreement keyCertSign

      But kE is not ambiguous. The keytool man page also gives 'kE" as an example in the "Generating Certificates for an SSL Server" section:

      keytool -storepass password -keystore server.jks -certreq -alias server |
          keytool -storepass password -keystore ca.jks -gencert -alias ca
          -ext ku:c=dig,kE -rfc > server.pem

      Attachments

        Issue Links

          Activity

            People

              weijun Weijun Wang
              mullan Sean Mullan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: