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

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Won't Fix
    • 8
    • None
    • security-libs
    • None
    • b77

    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

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

            Dates

              Created:
              Updated:
              Resolved: