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

Implementation of SSLSession returns wrong peer principal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.0.9.Final
    • None
    • None

      OpenSSlSession.getPeerPrincipal() returns the issuer principal of the first certificate in the chain, but it should return the subject principal instead.

      As a reference, look at the JDK implementation for getPeerPrincipal() and getLocalPrincipal():

      http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/d5a00b1e8f78/src/share/classes/sun/security/ssl/SSLSessionImpl.java#l541

              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: