-
Task
-
Resolution: Done
-
Major
-
None
-
None
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