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

PKCS12 keystore cannot store non-X.509 certificates

XMLWordPrintable

    • b132
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: