Check your pattern declaration or check your assert declaration.
You have a different solution? A short tip here would help you and many other users who saw this issue last week.
- java.lang.AssertionError: Authentication failed when it should have succeeded: Certificate keyUsage constraint forbids SSL client authentication. at org.junit.Assert.fail(Assert.java:88) at org.apereo.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandlerTests.verifyAuthenticate(X509CredentialsAuthenticationHandlerTests.java:242)