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

PKCS12 keystore cannot store non-X.509 certificates

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b132
    • Verification:
      Verified

      Description

      The java.security.KeyStore API supports the storage and retrieval of java.security.cert.Certificate objects. The PKCS12 keystore implementation in JDK supports only X.509 certificates. Any attempt to store a Certificate object that is not a java.security.cert.X509Certificate object currently results in a ClassCastException.

      The PKCS12 implementation should detect an attempt to store a non-X.509 certificate and throw the more informative KeyStoreException.

        Attachments

          Activity

            People

            Assignee:
            vinnie Vincent Ryan
            Reporter:
            vinnie Vincent Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: