Uploaded image for project: 'WildFly OpenSSL'
  1. WildFly OpenSSL
  2. WFSSL-71

OpenSSlSession.initPeerChain() fails on JDK 15+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.4.Final
    • None
    • None

      javax.security.cert.X509Certificate was deprecated in JDK 9 in favour of java.security.cert.X509Certificate.
      Because of some classes have been removed in JDK 15, invoking javax.security.cert.X509Certificate.getInstance() is failing with:

      Caused by: javax.net.ssl.SSLPeerUnverifiedException: Could not find class: java.lang.ClassNotFoundException: com/sun/security/cert/internal/x509/X509V1CertImpl

      We should be instantiating X509Certificates through the CertificateFactory and use the legacy classes only in the deprecated public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException

            ttarrant@redhat.com Tristan Tarrant
            ttarrant@redhat.com Tristan Tarrant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: