Details
Description
DefaultHostnameVerifier throws RuntimeException causing the IOReactor in HttpCore NIO to die. I have registered an issue on Apache HttpCore NIO HTTPCORE-660, but I really think this should be fixed in CXF.
Please not that the line in question was changed from returning false to throwing RuntimeException as part of CXF-7876. But, maybe a better approach would be to not catch the SSLException. This will not kill the IOReactor in HttpCore NIO.
Steps to reproduce
- Configure CXF to use asynchronous client http transport
- Test towards a server having a certificate with non-matching host (for instance wrong.host.badssl.com)
Attachments
Issue Links
- is duplicated by
-
CXF-8437 DefaultHostnameVerifier accepts any certificate as valid which is a secure issue
- Closed