On 18/01/2024 12:33, Rainer Jung wrote:
Hi all,

after the refactorings for the testing of the forbidden client initiated renegotiations, these unit tests fail for me for the last tags of TC 8.5 and 9, but not for 10.1 and 11. I am using JSSE and the tests fail consistently for all four JDK vendors I am testing against on all linux distributions I am testing on. I saw it for Java 8 and 11. No info yet about 17 and 21, the test runs will arrive at Java 17 later today.

Very odd. I just ran the 9.0.x test with Java 8 / JSSE and it passed.

Example output (no indication for a reason):

<snip/>


Testcase: testClientInitiatedRenegotiation took 0.383 sec
     FAILED
Renegotiation started when it should have failed
junit.framework.AssertionFailedError: Renegotiation started when it should have failed     at org.apache.tomcat.util.net.TestSsl.testClientInitiatedRenegotiation(TestSsl.java:250)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Odd. With JSSE and NIO, client initiated renegotiation should work.

I can't recreate this. If you can recreate this in a debugger then I'd look at TesterSupport.isClientRenegotiationSupported()

Mark




I expect it is a new problem in the test after the refactoring, not a real TLS issue.

Best regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to