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

store a NSS PKCS11 PrivateKeyEntry to JKS KeyStore throws confusing NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b85
    • CPU:
      sparc
    • OS:
      solaris_10

      Description

      if you want to store a PrivateKeyEntry previously taken out of a NSS PKCS11 keystore into a JKS keystore, the key material will be taken out and reprotected. since a NSS PrivateKey is sensitive, getEncoded() will return null. setEntry() will finally throw out a NPE instead of a KeyStoreException that explains why.

      ###@###.### 2005-05-13 04:03:43 GMT

        Attachments

          Activity

            People

            • Assignee:
              weijun Weijun Wang
              Reporter:
              weijun Weijun Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: