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

X509Certificate implementation should parse certs with key params it doesn't support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 11
    • security-libs
    • None

      The JDK X509Certificate implementation was designed to be able to parse certificates even if it doesn't support the public key algorithm. In these cases, it returns an implementation specific X509Key object which implements PublicKey. However, this design premise doesn't work if the key includes parameters which it doesn't support, instead it throws an exception. I don't think this was the intention of the design, and it should not try to decode the parameters, or at least not until they are needed by a later cryptographic operation.

            jnimeh Jamil Nimeh
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: