Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2631

Add a test to SSLAuthenticationTest that tests the wantClientAuth option

XMLWordPrintable

      setWantClientAuth method is used to request a client certificate, but it keeps the connection if none was provided. Add 2 new tests to class SSLAuthenticationTest.

      First test will configure a server SSLContext to have wantClientAuth set to true. Use a correct client certificate for the connection and make sure that the client was authenticated and the clientPrincipal was resolved correctly.

       

      Second test will configure a server SSLContext to have wantClientAuth set to true. Use an incorrect client certificate for the connection and test that the connection did not throw an exception, but the resolved client principal is null since no authentication happened

              mjusko@redhat.com Marek Jusko
              dvilkola@redhat.com Diana Krepinska (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: