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

store a NSS PKCS11 PrivateKeyEntry to JKS KeyStore throws confusing NPE

XMLWordPrintable

    • b85
    • sparc
    • solaris_10

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: