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

keytool cannot create PKCS12 keystore with different store & key passwords but API allows to create ones

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b77
    • Introduced In Version:

      Description

      keytool -genkeypair \
        -alias testkey \
        -keystore ks.pkcs12 \
        -dname 'CN=TestKey, T=FuncTestCertKey, O=Oracle, OU=JDKSQE, C=US' \
        -storepass passwd \
        -keypass keypasswd \
        -validity 365 \
        -keyalg RSA \
        -keysize 2048 \
        -storetype pkcs12

      Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified -keypass value.

      And key password is set to 'passwd'.
      KeyStore API allow to create, store & load PKCS12 keystore with different store & key passwords

        Attachments

          Activity

            People

            Assignee:
            weijun Weijun Wang
            Reporter:
            tledkov Taras Ledkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: